vue: tar ENOENT: no such file or directory

created at 03-23-2022 views: 13

problem

When npm install, there is a error:

tar ENOENT: no such file or directory

reason

This problem is caused by node version.

solution

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.

created at:03-23-2022
edited at: 03-23-2022: