在win7下安装yeoman出错,求哪位大神指导一下
$ npm install -g yonpm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npmC:\Users\sxm\AppData\Roaming\npm\yo-complete -> C:\Users\sxm\AppData\Roaming\npm\node_modules\yo\lib\completion\index.jsnpm ERR! Windows_NT 6.1.7601npm 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.0npm ERR! npm v3.10.6npm ERR! path C:\Users\sxm\AppData\Roaming\npm\yonpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall opennpm 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求哪位大神指导一下 |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|
可能是网络环境不好,试一下使用代理,或一些npm镜像 |
|
|
|
|
更改缓存的位置。默认位置有时读禁止。 NPM配置集缓存C:\Dev\nodejs\npm-cache |
|
|
|
|