2016-01-21 90 views
0

前一段时间,我在我的一个项目中使用了node-sass。现在,当我写npm updatenpm 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

我不需要节点萨斯可言,但不知何故,它抛出一个错误,我无法解释的。有没有人有关于如何摆脱这个问题的想法?

+0

什么操作系统你在运行这个?你见过https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md吗? – avrono

+0

我有mac os x,是的,我已阅读故障排除,我也读了他们在这个主题上的所有github问题。 我不明白的是,我的项目 - 与node-sass根本无关 - 在仅仅因节点sass输入'npm install/update'时可能会失败 – Markus

+0

必须有一些依赖项,我遇到了类似的问题过去有时不得不从源头上编译。您是否尝试过SUDO(即以root身份运行安装)? – avrono

回答

0

我在0.18中使用竖琴,似乎有一个错误。 0.20.1为我解决了这个问题