錯誤: Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x
js項目:node
一、從SVN上checkout 下來ios
終端打開cd 目錄
svn://192.168.x.xxx/xxx/xxx/xxx/xxx/xxx/xxx-ios/ (SVN上項目目錄)
/Users/Datacvg/Desktop/xxx --username=xxx --password=xxx
二、安裝cnpm 而且 build
cnpm install
cnpm run build
build成功以後會出現一個node_modules文件夾,以下圖所示:
很長時間以後再次cnpm run build的以後報錯 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x
以下圖所示:
解決方法:
刪除node_modules文件夾,從新執行cnpm install
再執行cnpm run build成功。