angularjs - Running npm install -g yo command gives ->"npm ERR! Windows_NT 6.1.7601" -


npm -v: 3.5.3

i new in npm, when running npm install -g yo ,getting error this:

npm err! windows_nt 6.1.7601 

npm err! argv "c:\program files\nodejs\node.exe" "c:\users\sougata.a\appda ta\roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "-g" "yo" npm err! node v5.5.0 npm err! npm v3.5.3 npm err! path c:\program files\nodejs\node_modules.staging npm err! code eperm npm err! errno -4048 npm err! syscall mkdir npm err! error: eperm: operation not permitted, mkdir 'c:\program files\nodejs\n ode_modules.staging' npm err! @ error (native) npm err! { [error: eperm: operation not permitted, mkdir 'c:\program files\node js\node_modules.staging'] npm err! errno: -4048, npm err! code: 'eperm', npm err! syscall: 'mkdir', npm err! path: 'c:\program files\nodejs\node_modules\.staging' } npm err! npm err! please try running command again root/administrator.

i don't have , proxy setting, , disabled firewall , antivirus. if run npm cache clean same error coming!!

can me???

this how solved issue on windows 8.1

  • go nodejs install (usually c:\program files\nodejs)
  • right click node_modules folder , go properties
  • click security tab , advanced
  • at top see "owner: system". click change.
  • enter user want permissions , click ok
  • check box @ bottom of advanced settings "replace child object permission entries inheritable permission entries object" , click ok
  • do whatever npm install/update need

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -