react-workshop
react-workshop copied to clipboard
Fails to `npm i` with Node 16
First off, I'm not familiar with JavaScript so maybe this obvious but it took me a long time to figure this out. Thought I'd open an issue in case someone else sees this. Might be good to add a note to the README.
I had node installed from Homebrew. This currently installs Node 16. One of the dependencies of this project, node-sass, isn't compatible with Node 16.
After awhile, I figured out how to workaround this:
- Uninstall Homebrew's Node:
brew uninstall node - Install NVM. I did
brew install nvmand then followed the instructions to add it to my shell. - Install Node 15:
nvm install v15 && nvm use v15 - After restarting your shell, you can run
node -vto confirm you have Node 15 and then runnpm ilike normal.
Thank you, I'll take a look at Node 16 later today to see if there's any problems. I currently use Node 14