vue運行出錯:Module build failed Error Node Sass does not yet support your current environment OS X 64-bit with Unsupported runtime 59


本地搭建renren -vue,啟動時出現問題,記錄一下

error  in ./src/App.vue
Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.5.3
    at module.exports (/Users/crifan/dev/dev_root/daryun/Projects/上汽大眾/斯柯達/總部報表/sourcecode/web_admin/HeadquarterReport/node_modules/node-sass/lib/binding.js:13:13)

node 9 Module build failed Error Node Sass does not yet support your current environment OS X 64-bit with Unsupported runtime 59

嘗試:

npm rebuild node-sass

之前,看到之前已有node-sass:

"node-sass": "^4.5.0”,

懷疑版本太低?

所以卸載后重裝

然后結果就解決了此問題了。

【總結】

此處是Vue環境下,把node從8.0.0升級到9.0.0導致了,之前已安裝的4.5.2的Node Sass報錯了。

解決辦法是:

卸載重裝(最新版本的node-sass)即可:

先卸載:(如果卸載不成功,直接找到node-sass文件夾,刪除)

npm uninstall --save node-sass

npm install --save node-sass

此處安裝的node-sass最新版是4.6.0


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM