win7 64位安装yeoman报错

在安装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
阅读 3.1k
1 个回答
新手上路,请多包涵

window系统好多奇怪的问题,安装linux系统基本没毛病

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进