猿问

win10 安装ionic报错

npm install -g ionic cordova
这是我写的命令,下面这是报错
npm ERR! path C:Program Filesnodejsnode_modules.staging
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:Program Filesnodejsnode_modules.staging'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:Program Filesnodejsnode_modules.staging'
npm ERR! at Error (native)
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:Program Filesnodejsnode_modules.staging'
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_modules\.staging' },
npm ERR! stack: 'Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging'n at Error (native)',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\Program Files\nodejs\node_modules\.staging',
npm ERR! parent: 'ionic' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-02-03T00_32_08_968Z-debug.log


小唯快跑啊
浏览 609回答 2
2回答

ABOUTYOU

Please try running this command again as root/Administrator.这里告诉你要用管理员的身份打开powershell

桃花长相依

window10有管理员权限问题,你要用管理员身份打开powershell才行,以后的andriod,sdk的下载也会出现这个问题。要用管理员身份运行。
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答