正确安装node-saas npm包

还有这么多不会正确安装npm包姿势的。。

在项目根目录新建.npmrc 文件,把下面代码拷进去,然后就不用管了,npm install 完事

另:node-sass的性能比dart-sass要好几倍,在大型项目上还是有可观的性能收益

registry=https://registry.npmmirror.com
sass_binary_site=https://npmmirror.com/mirrors/node-sass/
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/
electron_mirror=https://npmmirror.com/mirrors/electron/
sqlite3_binary_host_mirror=http://npmmirror.com/mirrors/
profiler_binary_host_mirror=http://npmmirror.com/mirrors/node-inspector/
chromedriver_cdnurl=https://npmmirror.com/mirrors/chromedriver
sentrycli_cdnurl=https://npmmirror.com/mirrors/sentry-cli/

你可能感兴趣的:(#,大前端【细节】知识,npm,前端,vue.js)