epicweb-dev / react-fundamentals

Material for my React Fundamentals Workshop

Home Page:https://fundamentals.epicreact.dev

Repository from Github https://github.comepicweb-dev/react-fundamentalsRepository from Github https://github.comepicweb-dev/react-fundamentals

Setup: wrong version of node, but it is correct...

blyal opened this issue · comments

This is a duplicate of #270 , but the solution there doesn't work for me.

The problem:

▶️  Starting workshop setup...
      Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
    ▶️  Starting: System Validation
          Ensuring the correct versions of tools are installed on this computer.
          Running the following command: npx "https://gist.github.com/kentcdodds/abbc32701f78fa70298d444c2303b6d9"
npm WARN cli npm v9.2.0 does not support Node.js v17.7.2. You should probably upgrade to a
npm WARN cli newer version of node as we can't make any promises that npm will work with this
npm WARN cli version. This version of npm supports the following node versions: `^14.17.0 ||
npm WARN cli ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
npm WARN cli npm v9.2.0 does not support Node.js v17.7.2. You should probably upgrade to a
npm WARN cli newer version of node as we can't make any promises that npm will work with this
npm WARN cli version. This version of npm supports the following node versions: `^14.17.0 ||
npm WARN cli ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
There were errors validating the compatibility of this computer:

    This computer has node@v17.7.2 installed, but node@14 || 16 || 18 is required. Please update node: https://nodejs.org


If you would like to just ignore this error, then feel free to do so and install dependencies as you normally would in "/Users/alex/Documents/Projects/epic_react/react-fundamentals". Just know that things may not work properly if you do...
    🚨  Failure: System Validation. Please review the messages above for information on how to troubleshoot and resolve this issue.

But I don't even have node v17.7.2 on my computer. I'm using v18.12.1 and npm v9.2.0

Additional information:

Alexs-MacBook-Air-2:react-fundamentals alex$ which npx
/Users/alex/.nvm/versions/node/v18.12.1/bin/npx
Alexs-MacBook-Air-2:react-fundamentals alex$ which node
/Users/alex/.nvm/versions/node/v18.12.1/bin/node

I'm not sure what could be causing this. But it does appear that you're system has and is using Node 17 based on the output from npm.

I suggest just setting it up manually if you'd prefer to not waste time debugging this.

Turns out the old version of Node, which I must have been using in the past before uninstalling, was still referenced in my package.json