摘要:本篇教程介绍了安装Node.js6.9x以后在Node.js4.2.x中运行正常的ionic项目出现问题如何解决,希望阅读本篇文章以后大家有所收获,帮助大家对Node.js的理解更加深入。
本篇教程介绍了安装Node.js6.9x以后在Node.js4.2.x中运行正常的ionic项目出现问题如何解决,希望阅读本篇文章以后大家有所收获,帮助大家对Node.js的理解更加深入。
<
看错误信息,由于NodeJs版本升级导致的。
到提示的目录下运行:npm rebuild node-sass -g 无效果
运行:
npm install -g node-sass
npm rebuild
还是不行
运行 node -e "console.log(require.resolve('node-sass'))"
查看当前node-sass所在位置
还是不行。放弃环境调整,在新环境下 ionic start myapp 重新重成一个ioinc V1 项目,将自定义内容复制进去,OK
-------------------------------------------------------------
错误信息
D:\IonicUI\tabApp>ionic serve
There is an error in your gulpfile:
Error: Missing binding D:\IonicUI\tabApp\node_modules\gulp-sass\node_modules\nod
e-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit
with Node.js 6.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 4.x
This usually happens because your environment has changed since running `npm ins
tall`.
Run `npm rebuild node-sass` to build the binding for your current environment.
at Object.<anonymous> (D:\IonicUI\tabApp\node_modules\gulp-sass\node_modules
\node-sass\lib\index.js:15:11)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\IonicUI\tabApp\node_modules\gulp-sass\index.js:187
:21)
at Module._compile (module.js:570:32)
D:\IonicUI\tabApp>
本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注WEB前端Node.js频道!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号