node.js - npm keeps prompting about permission issues
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-06-08 11:03:06
0
2
1178
$ npm install bootstrap npm ERR! Windows_NT 10.0.14393 npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "bootstrap" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! path C:\Program Files\nodejs\node-cache\bootstrap 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-cache\bootstrap' npm ERR! at Error (native) npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodej s\node-cache\bootstrap' npm ERR! at Error (native) npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\Program Files\nodejs\node-cache\bootstrap', npm ERR! parent: 'shopping' } 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! E:\Project Files\shopping\npm-debug.log

At first I thought it was a problem with the installation path, but I still had problems after changing it to the D drive

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all (2)
Peter_Zhu

If it is a Mac system, please add: sudo to the command line to try it

    世界只因有你

    Run cmd as administrator and then npm command

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!