[英]WheneverIi run "npm start "in react i get Error: Cannot find module 'autoprefixer'
Failed to compile./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1.?/node_modules/postcss-loader/src?.postcss.:/src/index.css) Error: Cannot find module 'autoprefixer'
编译失败。/src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1.? :/src/index.css) 错误:找不到模块'autoprefixer'
cd node_modeuls/postcss-loader // you need check the correct library name from the error
npm i autoprefixe
cd ../../
npm start
Try to use this method:尝试使用此方法:
Delete the node_modules
folder删除
node_modules
文件夹
use the yarn
command.使用
yarn
命令。 Or if you don't have Yarn installed, try to install it first with npm install yarn
and run the command yarn
to install the package you need.或者如果您没有安装 Yarn,请尝试先使用
npm install yarn
安装它,然后运行命令yarn
安装您需要的 package。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.