npm ERR! path E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, scandir 'E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modules'
npm ERR!   stack: 'Error: EPERM: operation not permitted, scandir \'E:\\SouthernPowerGridProject\\web_project\\AutoOPS\\autoops\\node_modules\\fsevents\\node_modules\\dashdash\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'scandir',
npm ERR!   path: 'E:\\SouthernPowerGridProject\\web_project\\AutoOPS\\autoops\\node_modules\\fsevents\\node_modules\\dashdash\\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!     C:\Users\ThinkT420\AppData\Roaming\npm-cache\_logs\2017-10-30T06_50_38_610Z-debug.log

之前有时报这个,以为还真是权限不够,感觉有点奇怪,用管理员权限执行,有时还真有用,不过后面查了下,时缓存的问题,清理下缓存就行,不用管理员权限。

方法1、

需要删除npmrc文件。

强调:不是nodejs安装目录npm模块下的那个npmrc文件

而是在C:\Users\{账户}\下的.npmrc文件..

方法2、

或者直接用命令清理就行,控制台输入:

npm cache clean --force

added 114 packages in 42.369s
E:\SouthernPowerGridProject\web_project\AutoOPS\autoops>npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.

E:\SouthernPowerGridProject\web_project\AutoOPS\autoops>npm install
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 114 packages in 42.369s

成功了

最新文章

  1. mysql问题
  2. shell 中scp密码输入 --expect
  3. 转载--web前端35个jQuery小技巧!
  4. SPI数据传输(库函数方法)
  5. 粒子群优化算法-python实现
  6. PHP获取上个月、下个月、本月的日期(strtotime(),date())
  7. BasicDataSource配备
  8. OpenJudge 2749 分解因数
  9. 使用ajax和history.pushState无刷新改变页面URL onpopstate(转)
  10. ‘for’ loop initial declarations are only allowed in C99 mode
  11. 【原创】Octovis在Ubuntu16.04下运行出现core dump的解决方案
  12. visual filters 滤镜 ie
  13. springboot项目启动时提示Address already in use: bind
  14. ASP.NET MVC应用迁移到ASP.NET Core及其异同简介
  15. mongodb-MYSQL
  16. 使用Python解析JSON详解
  17. UML之状态机图
  18. addEventListener调用带参数函数
  19. Python 进制转换与位运算
  20. box-sizing border-box 的理解

热门文章

  1. frp中的json模块
  2. Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
  3. Ubuntu下提示U盘没有权限--只能读不能写
  4. Kettle 中转换(transformation)的执行过程
  5. ubuntu18.04使用sudo时反应时间长
  6. Django学习手册 - 正则URL路由配置/路由分发
  7. Python 入门基础19 --面向对象、封装
  8. 实用技能之Python打包制作成EXE可执行程序
  9. 搭建yum服务器
  10. nginx入门二