env: node: No such file or directory

  • Trynode -v to see whether you've installed node. I think your node not works.

  • nvm is the environment managment for node. If you are using nvm, you should brew install nvm, and use nvm install version-of-node-you-want-to-install to install node, and use nvm use the-version to let node works.

  • Whole install chain is:

    • brew install nvm, to install nvm, which is environment/version management for node.

    • nvm install 10.3.0, to install node and npm

    • npm install -g yarn, to install yarn

    • use node -v, npm -v, nvm -v, yarn -v to check if they all works.


Perform the below steps:

  1. which node
  2. sudo ln -s /home/ubuntu/.nvm/versions/node/v12.13.1/bin/node (output of above step) /usr/bin/node