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
ABOUTYOU
桃花长相依
相关分类