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

在win7下安装yeoman出错,求哪位大神指导一下

在win7下安装yeoman出错,求哪位大神指导一下

$ npm install -g yo npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm C:\Users\sxm\AppData\Roaming\npm\yo-complete -> C:\Users\sxm\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\sxm\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! node v6.4.0 npm ERR! npm  v3.10.6 npm ERR! path C:\Users\sxm\AppData\Roaming\npm\yo npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall open npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\sxm\AppData\Roaming\npm\yo' npm ERR!     at Error (native) npm ERR!  { Error: EPERM: operation not permitted, open 'C:\Users\sxm\AppData\Roaming\npm\yo' npm ERR!     at Error (native) npm ERR!   errno: -4048, npm ERR!   code: 'EPERM', npm ERR!   syscall: 'open', npm ERR!   path: 'C:\\Users\\sxm\\AppData\\Roaming\\npm\\yo' } 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!     D:\workspace\npm-debug.log看起来好像是npm版本低,但是我升级也没啥用npm -g install npm求哪位大神指导一下
查看完整描述

2 回答

?
根号二

TA贡献1条经验 获得超0个赞

可能是网络环境不好,试一下使用代理,或一些npm镜像

查看完整回答
反对 回复 2016-09-21
  • hello_890
    hello_890
    谢谢.发现window下老实坑,但是我换成linux系统,基本没坑
?
黑女2008

TA贡献75条经验 获得超32个赞

更改缓存的位置。默认位置有时读禁止。 NPM配置集缓存C:\Dev\nodejs\npm-cache

查看完整回答
反对 回复 2016-08-29
  • hello_890
    hello_890
    谢谢.发现window下老实坑,但是我换成linux系统,基本没坑
  • 2 回答
  • 0 关注
  • 2470 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信