epicweb-dev / full-stack-foundations

Learn the foundational skills of building full stack web applications.
https://epicweb.dev/workshops/full-stack-foundations
Other
586 stars 152 forks source link

Get Node Version Error while runing npm run setup #66

Closed haorong547 closed 9 months ago

haorong547 commented 10 months ago
hli:full-stack-foundations hli$ npm run setup

> setup
> node ./setup.js

▶️  Starting workshop setup...
      Running the following command: npx "https://gist.github.com/kentcdodds/bb452ffe53a5caa3600197e1d8005733" -q
npm WARN cli npm v9.8.1 does not support Node.js v17.9.1. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
    ▶️  Starting: System Validation
          Ensuring the correct versions of tools are installed on this computer.
          Running the following command: npx --yes "https://gist.github.com/kentcdodds/abbc32701f78fa70298d444c2303b6d9"
npm WARN cli npm v9.8.1 does not support Node.js v17.9.1. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
npm WARN cli npm v9.8.1 does not support Node.js v17.9.1. This version of npm supports the following node versions: `^14.17.0 || ^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.9.1 installed, but node@>=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/hli/Documents/dev/epic-web/full-stack-foundations". 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.
hli:full-stack-foundations hli$ node -v
v18.18.2
hli:full-stack-foundations hli$ npm -v
9.8.1
kentcdodds commented 10 months ago

Based on the error message, I think you may have something wrong with the way that your node and NPM is configured on your machine.

kentcdodds commented 9 months ago

I'm afraid there's not much more I can do to help so I'm going to close this issue. You might try using GitHub codespaces to have a fresh environment that will work. Good luck!