开发者社区> 问答> 正文

ionic serve 报错, 跪求解决!!!?报错

安装完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)

 

展开
收起
爱吃鱼的程序员 2020-06-08 16:14:20 891 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    卸载node-sasscnpmuninstall--savenode-sass重新安装cnpminstall--savenode-sass

    2020-06-08 16:14:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载