错误: 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成功。