0
前一段时间,我在我的一个项目中使用了node-sass。现在,当我写npm update
或npm install
在任何项目(不使用节点青菜的话)我得到以下错误:npm update抛出node-sass错误
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
我试过到目前为止:
- NPM重建
- NPM重建节点萨斯
- NPM卸载-g节点萨斯
- NPM安装-g npde - 萨斯@ 2(某处,我读了V2没有问题)
我的节点版本是V5.1.0
我不需要节点萨斯可言,但不知何故,它抛出一个错误,我无法解释的。有没有人有关于如何摆脱这个问题的想法?
什么操作系统你在运行这个?你见过https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md吗? – avrono
我有mac os x,是的,我已阅读故障排除,我也读了他们在这个主题上的所有github问题。 我不明白的是,我的项目 - 与node-sass根本无关 - 在仅仅因节点sass输入'npm install/update'时可能会失败 – Markus
必须有一些依赖项,我遇到了类似的问题过去有时不得不从源头上编译。您是否尝试过SUDO(即以root身份运行安装)? – avrono