简介
ionic 填坑第三弹
错误
> npm i
× Running command - failed!
[ERROR]
> node-sass@4.5.3 install G:\Work\myApp\node_modules\node-sass
> node scripts/install.js
Cached binary found at
D:\Nodejs\node_cache\node-sass\4.5.3\win32-x64-57_binding.node
> uglifyjs-webpack-plugin@0.4.6 postinstall
G:\Work\myApp\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js
> node-sass@4.5.3 postinstall G:\Work\myApp\node_modules\node-sass
> node scripts/build.js
Binary found at
G:\Work\myApp\node_modules\node-sass\vendor\win32-x64-57\binding.node
Testing binary
Binary is fine
npm ERR! path G:\Work\myApp\node_modules\fsevents\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir
'G:\Work\myApp\node_modules\fsevents\node_modules'
npm ERR! { Error: EPERM: operation not permitted, scandir
'G:\Work\myApp\node_modules\fsevents\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, scandir
\'G:\\Work\\myApp\\node_modules\\fsevents\\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'G:\\Work\\myApp\\node_modules\\fsevents\\node_modules'
}
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!
D:\Nodejs\node_cache\_logs\2018-01-04T08_18_21_303Z-debug.log
错误截图
重点是这一句
Please try running this command again as root/Administrator.
所以我们尝试以管理员身份运行,开始搜索CMD,以管理员身份运行
网友评论