繁体   English   中英

npm更新引发节点错误

[英]npm update throws node-sass error

某个时候,我在一个项目中使用了node-sass。 现在,当我在任何项目(根本不使用node-sass)中编写npm updatenpm install ,都会出现以下错误:

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重建节点ass
  • npm卸载-g node-sass
  • npm install -g npde-sass @ 2(我读到v2没问题的地方)

我的节点版本是v5.1.0

我根本不需要node-sass,但是无论如何它会引发错误,我根本无法解释。 有谁知道如何摆脱这个想法?

我在0.18中使用竖琴,似乎有一个错误。 0.20.1为我修复了此问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM