nodejs项目node-sass转移问题 npm rebuild node-sass

ERROR in Missing binding H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass\vendor\win32-ia32-48\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node.js 6.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.
 @ ./src/assets/stylesheets/base.scss 4:14-127 13:2-17:4 14:20-133


ERROR in Missing binding H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass\vendor\win32-ia32-48\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node.js 6.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.
 @ ./src/assets/stylesheets/style.css 4:14-127 13:2-17:4 14:20-133


ERROR in Missing binding H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass\vendor\win32-ia32-48\binding.node
Node Sass could not find a binding for your current environment: Windows 32-bit with Node.js 6.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.
 @ ./~/react-datepicker/dist/react-datepicker.css 4:14-106 13:2-17:4 14:20-112
^C
H:\myWork\lvlvPro\lvlvPro>


H:\myWork\lvlvPro\lvlvPro>npm rebuild node-sass


> node-sass@3.8.0 install H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass
> node scripts/install.js


Binary downloaded and installed at H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass\vendor\win32-ia32-48\binding.node


> node-sass@3.8.0 postinstall H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass
> node scripts/build.js


"H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass\vendor\win32-ia32-48\binding.node" exists.
 testing binary.
Binary is fine; exiting.
node-sass@3.8.0 H:\myWork\lvlvPro\lvlvPro\node_modules\node-sass



此时运行按照提示执行  npm rebuild node-sass  命令,(如若不行,则先运行npm install node-sass命令执行)


然后再运行 node命令,启动服务。



期初会出现乱七八糟的什么msbuild.exe这些鬼东西,猜测还是跟nodejs版本有关,保持和原项目node版本一致就没出问题了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值