1.当前环境版本:
npm -v 6.1.0
node -v v10.0.0
mac 64bit
2. ionic start --pro-id e24ace68 创建项目出错:
3. 尝试解决方式
npm uninstall --save node-sass
npm install --save node-sass
本地预览:
ionic serve
仍然报错!
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)
详细部分随便抓取的,注意删除线部分。仔细查看node app-scripts 内同样引用了node-sass . 版本为4.7.0.
难怪项目下 node_modules node-sass 已经变为4.9.0 .还是出错。
知道问题所在了!同样的操作 app-scripts 下
npm uninstall --save node-sass
npm install --save node-sass
项目下 iconic serve
OK!!!