Several ways to solve the problem of npm ERR code ENOENT

One: You may have entered the wrong directory

It must be the innermost directory to take effect, otherwise it may prompt:

At this time, close the project, find the correct path and open it again

Two: If the path is correct

You can try to delete the local node_modules folder, and then npm install again

Three: maybe you don't have node.js installed

This is the official website to connect to Node.js (nodejs.org)

This is the Chinese website download link download | Node.js Chinese website (nodejs.cn)

Guess you like

Origin blog.csdn.net/silbier/article/details/128913650