When npm install
, there is a error:
tar ENOENT: no such file or directory
This problem is caused by node version.
To update the node version in the global environment, run the following statements in order:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
At this point, the version of node will be changed. After updating node, run npm install
again.