npm install -g ionic cordova这是我写的命令,下面这是报错npm ERR! path C:Program Filesnodejsnode_modules.stagingnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall mkdirnpm 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
添加回答
举报
0/150
提交
取消