2017-09-14 146 views
0

错误正常显示此Npm请以root/administrator |身份再次尝试使用此命令当安装引导jQuery的包

E:\NG4\19.Admin Panels\SupperAdmin>npm install bootstrap jquery --save npm WARN read-shrinkwrap This version of npm is compatible with [email protected], but npm-shrinkwrap.json was generated for [email protected] I'll try to do my best with it! npm WARN read-shrinkwrap This version of npm is compatible with [email protected], but npm-shrinkwrap.json was generated for [email protected] I'll try to do my best with it! [
......] - postinstall: info lifecycle [email protected]~postinstall: [email protected]

这将在70%安装包,然后(以前的消息),然后等待,然后几分钟显示以下信息:

Ë :\ NG4 \ 19.Admin Panels \ SupperAdmin> npm install bootstrap jquery --save npm WARN read-shrinkwrap此版本的npm与lockfileVersion @ 1兼容,但为lockfileVersion @ 0生成了npm-shrinkwrap.json。我会尽力用它做到最好! npm WARN read-shrinkwrap此版本的npm与lockfileVersion @ 1兼容,但为lockfileVersion @ 0生成了npm-shrinkwrap.json。我会尽力用它做到最好! npm ERR!路径E:\ NG4 \ 19.Admin Panels \ SupperAdmin \ node_modules \ fsevents \ node_modules \ assert-plus \ package.json npm ERR!代码EPERM npm ERR! errno -4048 npm ERR!系统调用取消链接 npm ERR! Error:EPERM:operation not permitted,unlink'E:\ NG4 \ 19.Admin Panels \ SupperAdmin \ node_modules \ fsevents \ node_modules \ assert-plus \ package.json' npm ERR! {Error:EPERM:operation not permitted,unlink'E:\ NG4 \ 19.Admin Panels \ SupperAdmin \ node_modules \ fsevents \ node_modules \ assert-plus \ package.json' npm ERR! stack:'Error:EPERM:operation not permitted,unlink \'E:\ NG4 \ 19.Admin Panels \ SupperAdmin \ node_modules \ fsevents \ node_modules \ assert-plus \ package.json \'', npm ERR! errno:-4048, npm ERR!代码:'EPERM', npm ERR! syscall:'unlink', npm ERR!路径:'E:\ NG4 \ 19.Admin Panels \ SupperAdmin \ node_modules \ fsevents \ node_modules \ assert-plus \ package.json'} npm ERR! npm ERR!请尝试以root/Administrator身份再次运行此命令。

npm ERR! NPM ERR:此运行的完整的日志中可以找到! C:\ Users \用户Sayed的\应用程序数据\漫游\ NPM-cache_logs \ 2017-09-14T05_48_28_139Z-的debug.log

E:\ NG4 \ 19.Admin面板\ SupperAdmin>

See this image Click here

E:\NG4\19.Admin Panels\SupperAdmin>

+0

您需要使用sudo – Vega

+0

运行,但我的特权时间不能获取此问题,目前我正在使用npm cli –

+0

这取决于您要安装的位置。对于这个,显然,你需要管理员权限。 – Vega

回答

0

您的问题与此github issue有关。

运行npm i --no-optional来解决这个问题。 您也可以降级您使用的npm版本。