为了账号安全,请及时绑定邮箱和手机立即绑定

使用npm install -g generator-webapp时出现的错误代码

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


C:\Windows\System32>npm install -g generator-webapp

npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail o

n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible

. Use 'npm ls graceful-fs' to find it in the tree.

npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a bu

ild toolchain, use it instead!


> spawn-sync@1.0.15 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_

modules\generator-webapp\node_modules\generator-jasmine\node_modules\yeoman-gene

rator\node_modules\cross-spawn\node_modules\spawn-sync

> node postinstall



> spawn-sync@1.0.15 postinstall C:\Users\Administrator\AppData\Roaming\npm\node_

modules\generator-webapp\node_modules\yeoman-generator\node_modules\cross-spawn\

node_modules\spawn-sync

> node postinstall


npm ERR! Windows_NT 6.1.7601

npm ERR! argv "D:\\node-v4.2.1-x64\\node.exe" "D:\\node-v4.2.1-x64\\node_modules

\\npm\\bin\\npm-cli.js" "install" "-g" "generator-webapp"

npm ERR! node v4.2.1

npm ERR! npm  v2.14.7

npm ERR! path C:\Users\Administrator\AppData\Roaming\npm-cache\util-deprecate\1.

0.2\package\package.json.1ff92b485ef414b53c752bbfe9acd9b1

npm ERR! code EPERM

npm ERR! errno -4048

npm ERR! syscall rename


npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Administrator\A

ppData\Roaming\npm-cache\util-deprecate\1.0.2\package\package.json.1ff92b485ef41

4b53c752bbfe9acd9b1' -> 'C:\Users\Administrator\AppData\Roaming\npm-cache\util-d

eprecate\1.0.2\package\package.json'

npm ERR!     at Error (native)

npm ERR!  { [Error: EPERM: operation not permitted, rename 'C:\Users\Administrat

or\AppData\Roaming\npm-cache\util-deprecate\1.0.2\package\package.json.1ff92b485

ef414b53c752bbfe9acd9b1' -> 'C:\Users\Administrator\AppData\Roaming\npm-cache\ut

il-deprecate\1.0.2\package\package.json']

npm ERR!   errno: -4048,

npm ERR!   code: 'EPERM',

npm ERR!   syscall: 'rename',

npm ERR!   path: 'C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache\\util-de

precate\\1.0.2\\package\\package.json.1ff92b485ef414b53c752bbfe9acd9b1',

npm ERR!   dest: 'C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache\\util-de

precate\\1.0.2\\package\\package.json',

npm ERR!   parent: 'readable-stream' }

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:\Windows\System32\npm-debug.log


正在回答

1 回答

权限不够,请用管理员方式打开cmdhttp://img1.sycdn.imooc.com//575393250001556206510134.jpg

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

使用npm install -g generator-webapp时出现的错误代码

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信