1. 程式人生 > >Node Sass does not yet support your current environment解決辦法

Node Sass does not yet support your current environment解決辦法

在啟動Nodejs專案時出現以下Error: 

Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
    at module.exports (/opt/care1.0.0/other_modules/nodejs/node_modules/
[email protected]
@node-sass/lib/binding.js:13:13) at Object.<anonymous> (/opt/care1.0.0/other_modules/nodejs/node_modules/[email protected]@node-sass/lib/index.js:14:35) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/care1.0.0/other_modules/nodejs/template_renderer/routes/index.js:9:12) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/care1.0.0/other_modules/nodejs/app.js:10:14) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) error: Forever detected script exited with code: 1

然後先解除安裝再安裝node-sass:

cnpm uninstall --save node-sass
cnpm install --save node-sass

還是出現Error:

✖ Install fail! Error: post install error, please remove node_modules before retry!
Run "sh -c node scripts/install.js" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "sh -c node scripts/install.js" error, exit code 1
    at ChildProcess.proc.on.code (/home/ec2-user/nodejs/lib/node_modules/cnpm/node_modules/runscript/index.js:74:21)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
所以根據上面的提示
please remove node_modules before retry

就刪除nodejs專案目錄下的node_modules:

rm -rf ./node_modules

重新執行整個cnpm install

cnpm install
結果就可以了。

相關推薦

nodejs -- Node Sass does not yet support your current environment解決辦法

前言 在github上clone了一個專案,npm install之後,啟動專案時報瞭如題目的錯誤導致專案啟動失敗; 產生問題的原因 執行npm install命令時,其實是npm按照專案裡的package.json檔案來下載專案所有的依賴;

ionic開發——Node Sass does not yet support your current environment解決辦法

原文出處:https://yq.aliyun.com/ziliao/478197摘要: 本文講的是ionic開發——Node Sass does not yet support your current environment解決辦法, 這個問題在升級ionic2的時候可能會遇到,不一定是windo

ionic中Node Sass does not yet support your current environment解決辦法Node sass安裝

1. npm uninstall --save node-sass   npm install --save node-sass   如果還是不行就執行:npm cache clean 再執行2

Node Sass does not yet support your current environment解決辦法

在啟動Nodejs專案時出現以下Error: Error: Node Sass does not yet support your current environment: Linux 64-bit w

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x

分享圖片 src env light mage rebuild 圖片 clas c項目 運行Reac項目報: Node Sass could not find a binding for your current environment: OS X 64-bit with

The name 'xxx' does not exist in the current context 錯誤解決方法之一

巢狀在內層的asp:datalist或者其他控制元件是無法直接被code behind呼叫的,應該現在外層的datalist加事件onitemdatabound事件處理函式,使用方法如下 aspx檔案: <asp:DataList ID="DataList1" run

關於編寫WPF UserControl時提示The name 'InitializeComponent' does not exist in the current contextr的解決

1、開啟.csproj(工程)檔案。 2、找到<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />這一行 3、在這一行下面新增<Import Project="$(MSBuildBin

Mapped Statements collection does not contain value for 問題的解決

invoke tde ping ret als bat find mvc lar 在做SSM項目的時候,遇到MyBatis拋出的一個異常: Mapped Statements collection does not contain value for org.lyk.vo.

ImportError: dynamic module does not define module export function (PyInit__caffe) 解決方法

人工智慧/機器學習/深度學習交流QQ群:116270156 錯誤提示 caffe2執行caffe_translator.py報錯: ImportError: dynamic module does not define module export function (

Perhaps JAVA_HOME does not point to the JDK的解決方法

Unable to find a javac compiler;Perhaps JAVA_HOME does not point to the JDK   web專案部署到tomcat7、jdk7的環境下訪問報錯500: Unable to fin

JSON does not allow non-finite numbers問題解決

程式碼中為:JSONArray.fromObject(json) 在使用JSONArray時報錯: JSON does not allow non-finite numbers; 原因為: JSON 在轉換時 double 值為無窮大(INFINITY),在轉換前對該

cnpm安裝過程中提示optional install error: Package require os(darwin) not compatible with your platform(win32)解決方法 cnpm安裝過程中提示optional install error: Package

cnpm安裝過程中提示optional install error: Package require os(darwin) not compatible with your platform(win32)解決方法   執行cnpm install後,出現 雖然提

npm ERR! code ENOLOCAL Could not install from "" as it does not contain a package.json file.解決

一、問題描述 使用npm安裝時出現以下問題, $ npm install -g npm ERR! code ENOLOCAL npm ERR! Could not install from "" as

eclipse 中匯入原始碼出現 The declared package does not match the expected package的解決方法

eclipse 匯入專案,有時候會出現 java 檔案圖示由實心J變成空心J的問題,這個時候是不能編輯原始檔的,至於解決辦法就是右鍵該資料夾 – >BuildPath –> use as source folder 當以上問題解決後,如果你選擇的檔

getTasks: caller 10108 does not hold GET_TASKS; limiting output問題解決

出現以下刷屏輸出: 11-28 11:55:43.249: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output 11-28 11:55:44.300

tar.gz 解壓出現 tar :This does not look like a tar archive 解決

在安裝maven時,使用tar 命令解壓maven.tar.gz出現: tar :This does not look like a tar archive tar: Exiting with failure status due to previous errors 如圖

editor does not contain a main type的解決方案

先感謝下作者 pocky 今天用eclipse,當打算run一個帶有main函式的class時,出現editor does not contain a main type的錯誤框。 baidu了一下,迅速解決問題:原來這個class所在包沒有被新增到build path中

RuntimeError: Python is not installed as a framework 錯誤解決辦法

install atp 錯誤解決辦法 pip3 font 需要 macbook ken work 因為我是macbook,mac是自帶的python 2.7,但是我開發需要使用到的是python3,所以先使用pip3 install matplotlib 然後在交互頁面鍵入

zookeeper集群查看狀態時報錯Error contacting service. It is probably not running的一些坑以及解決辦法

暫時 關機重啟 ron emc img 坑爹 .com 輸出日誌 off 最近在搭建mq集群時候需要用到,zookeeper,可是啟動的時候顯示成功了,查看狀態的時候卻報錯了: 碰到這個問題也是研究好好半天才解決,這裏就總結出一個快速解決辦法! 首先,必須看日誌: 報錯

Error inflating class android.support.v4.view.ViewaPager解決辦法 Android studio版本

點選依賴管理 切換到依賴  點選加號 搜尋v4點選新增 發現找不到一部分資原始檔 ,因為版本不符合 在我們的gradle檔案中修改版本號 我這裡是26的編譯版本所以改為26 ok編譯通過     &