最近系统崩溃,亏得有备份,将备份重新拷贝运行出错,现总结问题如下:
1,首先查看nodejs 版本是否一致,原项目运行的nodejs版本还有后天服务框架,我用的是express框架
2,运行node程序时如果出现
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版本一致就没出问题了。