> node-sass@4.9.0 install C:\Users\Administrator\Desktop\mall-admin-web-master\mall-admin-web-master\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-64_binding.node":
解决办法:cnpm install node-sass
cnpm是一个强悍的工具,几乎能解决所有npm安装第三方包时遇到的问题。
npm install
npm rm node-sass
cnpm install node-sass
npm install
下载后编译
几乎所有需要的环境(python等)都是预安装的,如果是root权限直接 upm install 就搞定了,
linux下遇到权限问题请执行:
npm i --unsafe -perm