a step-to-step explanation on how to create an app using CRA on RaspberryPiZero with modern NodeJs (>=14.x.x)
我愿在<罗伯里>上设定一份<>React>/strong>申请。 Piper 零 W。
现在,create-react-app, 要求NodeJs edition >=14.x.。
I used to select builds that are present at https://nodejs.org/dist/ to install NodeJs on RPZ, but the compatible ones stop at version 11.x.x.
我尝试如下:
- Use create-react-app with an older version npx create-react-app@4 my-app but this fails with log stating that global installations are no longer supported with older version than the current one.
- Install CRA@4 locally and execute the create-react-app command from /node_modules/.bin but this throw the exact same error.
- Install a non-official NodeJs build among the ones present at https://unofficial-builds.nodejs.org/ and execute the latest version of CRA via npx. But these builds look unstable... With build 20.11.0 I got Internet disconnection error logs (but the connection is actually OK), and with build 14.21.3, I got insufficient memory error logs, in both cases these errors happens when executing the create-react-app command, and make it fail.
www.un.org/Depts/DGACM/index_spanish.htm 如何在RaspberryPi零上使用制造-反应 现今: