簡體   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