cnpm run build 报错 Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x

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

js项目:

1、从SVN上checkout 下来

终端打开cd 目录
svn://192.168.x.xxx/xxx/xxx/xxx/xxx/xxx/xxx-ios/   (SVN上项目目录)
/Users/Datacvg/Desktop/xxx  --username=xxx --password=xxx
2、安装cnpm 并且 build
npm  install cnpm -g - -registry=https://registry.npm.taobao.orgrg//只在第一次执行一次  之后不用在执行
 
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成功。
 
posted @ 2018-04-27 16:01  Belinda_sl  阅读(758)  评论(0编辑  收藏  举报