node.js 项目 安装依赖项后出现 node-sass 报错

报错主要含以下信息:

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.


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




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

如果下载很慢的话 在后面加上 --registry https://registry.npm.taobao.org,使用淘宝镜像下载会快很多

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

 

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

你可能感兴趣的:(学习上遇到,的问题)