yarn start失败 #24
Unanswered
qidasheng369
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
yarn install的时候报错
error E:\web\demo\ECharts\7-react-admin-ts-master\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: E:\web\demo\ECharts\7-react-admin-ts-master\node_modules\node-sass
Output:
Building: D:\apps\nodejs\node.exe E:\web\demo\ECharts\7-react-admin-ts-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
"name": "node-sass",
"version": "4.14.1",
然后我卸载node-sass,并尝试用cnpm安装
使用cnpm install node-sass@4.14.1这个命令;
淘宝源
cnpm install node-sass@4.14.1
npm ERR! code 1
npm ERR! path E:\web\demo\ECharts\react-echarts-ts\node_modules\node-sass
npm ERR! command failed
还是会报错
更新完nodes-sass会包这个错。
应该是版本不对。
Failed to compile.
./src/styles/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./node_modules/sass-resources-loader/lib/loader.js??ref--6-oneOf-5-5!./src/styles/index.scss)
Error: Node Sass version 7.0.0 is incompatible with ^4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions