win10 安装ionic报错

npminstall-gioniccordova这是我写的命令,下面这是报错npmERR!pathC:ProgramFilesnodejsnode_modules.stagingnpmERR!codeEPERMnpmERR!errno-4048npmERR!syscallmkdirnpmERR!Error:EPERM:operationnotpermitted,mkdir'C:ProgramFilesnodejsnode_modules.staging'npmERR!atError(native)npmERR!{Error:EPERM:operationnotpermitted,mkdir'C:ProgramFilesnodejsnode_modules.staging'npmERR!atError(native)npmERR!cause:npmERR!{Error:EPERM:operationnotpermitted,mkdir'C:ProgramFilesnodejsnode_modules.staging'npmERR!atError(native)npmERR!errno:-4048,npmERR!code:'EPERM',npmERR!syscall:'mkdir',npmERR!path:'C:\ProgramFiles\nodejs\node_modules\.staging'},npmERR!stack:'Error:EPERM:operationnotpermitted,mkdir'C:\ProgramFiles\nodejs\node_modules\.staging'natError(native)',npmERR!errno:-4048,npmERR!code:'EPERM',npmERR!syscall:'mkdir',npmERR!path:'C:\ProgramFiles\nodejs\node_modules\.staging',npmERR!parent:'ionic'}npmERR!npmERR!Pleasetryrunningthiscommandagainasroot/Administrator.
npmERR!Acompletelogofthisruncanbefoundin:npmERR!C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-02-03T00_32_08_968Z-debug.log
慕尼黑的夜晚无繁华
浏览 537回答 2
2回答

慕勒3428872

Pleasetryrunningthiscommandagainasroot/Administrator.这里告诉你要用管理员的身份打开powershell

泛舟湖上清波郎朗

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

相关分类

JavaScript