node-sass has been deprecated

ERROR TypeError: transpileDependencies.map is not a function
npm ERR! Build failed with error code: 1
verbose stack Error: command failed
npm error transpileDependencies.map is not a function
stop “npm install” at […] | idealTree:regal: sill idealTree buildDeps
reify:xlsx: http fetch GET 200 https://cdn.npmmirror.com/packages/xlsx/0.15.6/xlsx-0.15.6.tgz 31617ms (cache miss)
reify:core-js: http fetch GET 200 https://cdn.npmmirror.com/packages/core-js/3.19.1/core-js-3.19.1.tgz 9260ms (cache miss)
sh: vue-cli-service: command not found
vue-cli-service: command not found
gyp: No Xcode or CLT version detected!
npm install with error: gyp failed with exit code: 1

解决:
npm uninstall node-sass
npm install sass

npm镜像源就是npm 管理的 Node.js 包的资源地址。
http://npmjs.com
npm从镜像源下载包就是输入npm install 包名,这命令后,会去http://npmjs.com这个官网进行查找下载安装,供开发人员使用该包。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐