env: node: No such file or directory
Try
node -v
to see whether you've installed node. I think your node not works.nvm
is the environment managment for node. If you are usingnvm
, you shouldbrew install nvm
, and usenvm install version-of-node-you-want-to-install
to install node, and usenvm use the-version
to let node works.Whole install chain is:
brew install nvm
, to installnvm
, which is environment/version management for node.nvm install 10.3.0
, to installnode
andnpm
npm install -g yarn
, to installyarn
use
node -v
,npm -v
,nvm -v
,yarn -v
to check if they all works.
Perform the below steps:
- which node
- sudo ln -s /home/ubuntu/.nvm/versions/node/v12.13.1/bin/node (output of above step) /usr/bin/node