search

Home  >  Q&A  >  body text

node.js - npm keeps prompting about permission issues

$ 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

曾经蜡笔没有小新曾经蜡笔没有小新2731 days ago1252

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-06-09 20:14:03

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

    reply
    0
  • 世界只因有你

    世界只因有你2017-06-08 11:05:06

    Run cmd as administrator and then npm command

    reply
    0
  • Cancelreply