Closed trevoraaron closed 2 years ago
FYI if you followed the steps above, you'll have to use npm to install ganache-cli as well
I ran the below and it works so far.
npm install --global ganache-cli
Another FYI (sorry for the spam):
For some reason version 17 of Node does not work well with ganache-cli
I downgraded node to version 16 and ganache-cli seemed to work just fine
To downgrade
nvm install v16.13.1
Glad you got it to work!! Thanks for posting!!
I ran into an issue when attempting to install Node and Yarn at the 4hr 19 minute mark.
Issue encountered: When trying to install Yarn after installing Node (directly from the website, using the installer, as the class instructed) I encountered 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
Resolution: After reading posts on Stack Overflow, I found this post here. I looked into the answers, and one referenced the npm Docs(link), saying npm themselves recommend not using the installer to install node. Instead, they recommend using node version manager (nvm).
I followed the steps in that answer Install nvm via curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
If you are running into errors with that, like I was, I recommend installing Xcode for Mac. I read more information here (link) Essentially you can download the entire Xcode app from Apples App Store, or via the Mac terminal, you can type
xcode-select --install
It will take quite a while to install, but once that is done, exit out of your terminal and open it back up, then run the following to see if it worked:command -v nvm
Result should return nvmAfter all that, you should be able to finally run
nvm install node
That should be it, you can now run and install yarn
npm install --global yarn
Hopefully if anyone else is running into this issue they come here and find this helpful. I may also write up a Q and A post in Stack Overflow.