安装完ionic后,新建项目后,运行ionic serve 报错:
G:\work\nodejs\demo003>npm -v
3.8.6
G:\work\nodejs\demo003>ionic -v
2.2.1
Error: Missing binding G:\work\nodejs\demo003\node_modules\node-sass\vendor\win32-x64-14\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node 0.12.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 6.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to build the binding for your current environment.
at module.exports (G:\work\nodejs\demo003\node_modules\node-sass\lib\binding.js:15:13)
at Object.<anonymous> (G:\work\nodejs\demo003\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (G:\work\nodejs\demo003\node_modules\gulp-sass\index.js:187:21)
at Module._compile (module.js:460:26)
卸载node-sasscnpmuninstall--savenode-sass重新安装cnpminstall--savenode-sass
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。