惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
B
Blog
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
月光博客
月光博客
H
Help Net Security
V
Visual Studio Blog
量子位
A
About on SuperTechFans
博客园 - Franky
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog

博客园 - 晴窗笔记

javascript的严格模式:use strict Ionic在线打包IOS平台应用 cordova插件分类 ionic 启用sass ngCordova 为Asp.net WebApi 添加跨域支持 使用ionic framework创建一个简单的APP 研究主题 近两天让我羞愧难当的遭遇 cordova环境配置 正则表达式基础 2016年读书计划 红皇后假说 微信OAuth2.0网页授权 2016年碎语 Apache + PHP 环境搭建 各种环境配置 技术名词记 使用新浪云(SAE)实现基于mySql和微信公众平台的关键字请求响应服务
安装nodejs6.9x以后,原来在nodejs4.2.x中运行正常的ionic项目...
晴窗笔记 · 2017-01-11 · via 博客园 - 晴窗笔记

安装nodejs6.9x以后,原来在nodejs4.2.x中运行正常的程序出现的问题。
看错误信息,由于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>