![](/img/trans.png)
[英]create-react-app > error css-loader@1.0.0: The engine “node” is incompatible with this module. Expected version “>= 6.9.0 <7.0.0 || >= 8.9.0”
[英]npx create-react-app -> The engine "node" is incompatible with this module. Expected version ">= 10.x". Got "8.16.0" - Arch Linux
我知道这已经来过很多次了,但它就是行不通。 我使用 Arch Linux。 每次我尝试跑步
npx create-react-app my-app
或者
npm create-react-app my-app
我明白了
error @pmmmwh/react-refresh-webpack-plugin@0.4.3: The engine "node" is incompatible with
this module. Expected version ">= 10.x". Got "8.16.0"
error Found incompatible module.
当我输入node -v
我得到14.16.1
和npm -v
-> 7.10.0
看起来节点版本似乎没有更新到 14.x 版本。 也许? 我已经尝试更新sudo npm install -g npm
和sudo n stable
。
当我尝试sudo npm install npm@latest -g
我得到很多Missing write access to /usr/local/lib/node_modules/............
解决方法是我通过pacman
和Snap Store
安装了节点(我不知道),我在 WebStorm 中看到安装了一些节点 v 8.16.0
。 所以我卸载了snap version
并且它正在工作。 看起来create-react-app
使用的是snap version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.