error path /node_modules/node-sass

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这个官网进行查找下载安装,供开发人员使用该包。

你可能感兴趣的:(sass,javascript,vue.js)