npm update抛出node-sass错误

时间:2016-01-21 10:04:04

标签: node.js npm node-sass

前一段时间我在我的一个项目中使用了node-sass。现在,当我在任何项目中编写npm updatenpm install时(根本没有使用node-sass),我收到以下错误:

npm ERR! node-sass@3.3.2 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.3.2 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 rebuild
  • npm rebuild node-sass
  • npm uninstall -g node-sass
  • npm install -g npde-sass @ 2(在某处我读到v2没有问题)

我的节点版本是v5.1.0

我根本不需要节点,但不知怎的,它会抛出错误,我根本无法解释。有没有人知道如何摆脱这个?

1 个答案:

答案 0 :(得分:0)

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

相关问题