npm 更新抛出 node-sass 错误
npm update throws node-sass error
前段时间我在我的一个项目中使用了 node-sass。现在,当我在任何项目中编写 npm update
或 npm 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 重建
- npm 重建节点-sass
- npm uninstall -g node-sass
- npm install -g npde-sass@2(我在某处读到 v2 没有问题)
我的节点版本是v5.1.0
我根本不需要 node-sass,但不知何故它抛出了一个错误,我根本无法解释。有没有人知道如何摆脱这个?
我在 0.18 中使用竖琴,它似乎有一个错误。 0.20.1 为我解决了这个问题
前段时间我在我的一个项目中使用了 node-sass。现在,当我在任何项目中编写 npm update
或 npm 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 重建
- npm 重建节点-sass
- npm uninstall -g node-sass
- npm install -g npde-sass@2(我在某处读到 v2 没有问题)
我的节点版本是v5.1.0
我根本不需要 node-sass,但不知何故它抛出了一个错误,我根本无法解释。有没有人知道如何摆脱这个?
我在 0.18 中使用竖琴,它似乎有一个错误。 0.20.1 为我解决了这个问题