node环境变更
2018-03-28 本文已影响0人
该昵称注册中
最近重装系统,下了最新的node,安装了cnpm,
npm install -g cnpm --registry=https://registry.npm.taobao.org
. 在运行时报unpect token{
,还有各种奇葩错.如
sass error
解决方案.运行npm rebuild node-sass
,如若不行,则先运行npm install node-sass命令执行)
最近重装系统,下了最新的node,安装了cnpm,
npm install -g cnpm --registry=https://registry.npm.taobao.org
. 在运行时报unpect token{
,还有各种奇葩错.如
sass error
解决方案.运行npm rebuild node-sass
,如若不行,则先运行npm install node-sass命令执行)