【发布时间】:2021-04-20 20:08:16
【问题描述】:
我知道这已经来过很多次了,但就是不管用。我使用 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/............。
【问题讨论】:
标签: node.js reactjs create-react-app