在如图下执行解决方案:
-
cnpm install -g cnpm
-
cnpm install
-
cnpm install node-sass
如果下载过慢出现下面提示,那就是下载过慢,可以选择使用淘宝镜像
npm WARN deprecated core-js@2.6.10: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
-
npm config set registry https://registry.npm.taobao.org
-
– 配置后可通过下面方式来验证是否成功
-
npm config get registry
-
– 或npm info express