ionic 填坑之 Please try running this command again as root/Administrator.

简介

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,以管理员身份运行

问题解决

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容