我花了最后几个小时尝试安装离子和cordova,但我一直收到以下错误。我不知道错误或如何修复它,我尝试清除缓存并将环境变量设置为正确的路径。以前有人遇到过这个问题吗?
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\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 this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\noor\eggly-ionic\npm-debug.log
答案 0 :(得分:0)
您需要 Start a Command Prompt as an Administrator 。
另外,请务必暂时停用反恶意软件和防病毒软件。