An error
Clone project from remote git and run NPM install
Because the original user of the computer at hand has NodeJS, and has not been re-installed, so I suspect this is the problem. Uninstall clean NodeJS and reinstall a version 14.
To solve
uninstall
To uninstall programs and functions from the uninstall program, you can also right-click the Node. js installation package and choose Uninstall.
Restart (or restart the task manager to kill all processes associated with the node).
1. Find the relevant contents in the following directories and delete them:
C:\Program Files (x86)\ NodeJs C:\Program Files\ Nodejs C:\Users{User}\AppData\ NPM (or % AppData %\ NPM)\ \ \ \ \ \ C:\Users{User}\AppData\Roaming\npm-cache (or % AppData % npm-cache)Copy the code
2. Check the %PATH% environment variable to ensure that no references to Nodejs or NPM exist.
Restart your computer.
Install nodejs
Search for NodeJS, click Download, and then pull to the bottom to get Previous Releases.
Here 14.18.0 is selected
Default installation will automatically add PATH, my computer => Properties => Advanced System Settings => Environment variables check and confirm.
Attached is a more detailed NodeJS configuration article