【问题标题】:npm 4.2 install error in fresh laravel installation 5.6全新 laravel 安装 5.6 中的 npm 4.2 安装错误
【发布时间】:2023-03-11 14:25:01
【问题描述】:
npm ERR! Error
npm ERR!     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:29:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:114:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\wamp64\www\blog\node_modules\.staging\abbrev-330971f9' -> 'C:\wamp64\www\blog\node_modules\abbrev'
npm ERR!  Error
npm ERR!     at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:29:7)
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:114:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\wamp64\www\blog\node_modules\.staging\abbrev-330971f9' -> 'C:\wamp64\www\blog\node_modules\abbrev'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\gherr_000\AppData\Roaming\npm-cache\_logs\2018-03-16T22_35_31_584Z-debug.log

【问题讨论】:

    标签: laravel npm


    【解决方案1】:

    由于命令的输出表明您应该尝试以管理员身份再次运行,因为看起来 npm 尝试编辑的文件归您以外的用户所有。

    在 Windows 上,您可以通过从 git bash/CMD/powershell 等运行命令来执行此操作,方法是使用管理员权限启动它们 - 为此在开始菜单中搜索该程序并右键单击它并选择“以管理员身份运行” '。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-29
      • 2020-01-21
      • 2015-09-15
      • 1970-01-01
      • 1970-01-01
      • 2018-10-09
      • 2014-07-08
      相关资源
      最近更新 更多