npm install -> 在 node-sass@4.5.0 安装后脚本失败 [英] npm install ->Failed at the node-sass@4.5.0 postinstall script

查看:22
本文介绍了npm install -> 在 node-sass@4.5.0 安装后脚本失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行 npm install 并出现错误:

I'm trying to do npm install and an error appears :

Failed at the node-sass@4.5.0 postinstall script.

我试图删除 node_modules 然后重新安装它,出现同样的错误.解决办法是什么?

I tried to delete node_modules and then reinstall it, same error appears. what will be the solution?

节点 v8.9.3
npm v5.4.2
离子 3.19.0

node v8.9.3
npm v5.4.2
ionic 3.19.0

推荐答案

遇到了同样的问题(node v10.3.0,ionic 3.13.0).这有效:

Got the same problem (node v10.3.0, ionic 3.13.0). This worked :

  • 删除package-lock.json,
  • 删除node_modules文件夹,
  • 再次运行 npm install.
  • Delete package-lock.json,
  • Delete node_modules folder,
  • Run npm install again.

这篇关于npm install -> 在 node-sass@4.5.0 安装后脚本失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆