Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runt...

1.當(dāng)前環(huán)境版本:

npm -v 6.1.0

node -v v10.0.0

mac 64bit?

2. ionic start --pro-id e24ace68 創(chuàng)建項(xiàng)目出錯(cuò):

3. 嘗試解決方式

npm?uninstall?--save?node-sass??

npm install --save node-sass

本地預(yù)覽:

ionic serve

仍然報(bào)錯(cuò)!?

bash-3.2# ionic serve -cError: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (64)

For more information on which environments are supported please see:https://github.com/sass/node-sass/releases/tag/v4.7.0 ? at module.exports(/Users/richardparry/ionicapps/app-scripts/node_modules/node-sass/lib/binding.js:13:13)? ? at Object. (/Users/richardparry/ionic apps/app-scripts/node_modules/node-sass/lib/index.js:14:35)

詳細(xì)部分隨便抓取的,注意刪除線部分。仔細(xì)查看node app-scripts 內(nèi)同樣引用了node-sass . 版本為4.7.0.

難怪項(xiàng)目下 node_modules node-sass 已經(jīng)變?yōu)?.9.0 .還是出錯(cuò)。

知道問題所在了!同樣的操作 app-scripts 下?

npm?uninstall?--save?node-sass??

npm install --save node-sass

項(xiàng)目下 iconic serve?

OK!??!

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容