Search code examples
javascriptnode.jsreactjsnpmcreate-react-app

Create React App with an older version of node


I am trying to use Create React App but getting an error that it requires Node 10 or higher. My node version is Node 8.10.0 and there's no way for me to update the Node version since it's a work machine. Is there any way to run an older version of Create React App to work with my older Node version?


Solution

  • I managed to run it. It seems like the last versions of the packages which support Node 8.x.x are 3.4.1 for create-react-app and 3.1.1 for react-scripts. What I did:

    npm uninstall -g create-react-app
    npm install -g [email protected]
    create-react-app my-app --scripts-version 3.1.1
    

    But it's better to update your Node version to the actual (or LTS at least).