At the beginning, an error is reported when NPM install XXX is entered in vscode:
NPM: the ‘NPM’ entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then try again
location line: 1 character: 1
+ NPM install unip
+ ~ ~
+ categoryinfo: objectnotfound: (NPM: String) [], commandnotfoundexception
+ fullyqualified errorid: commandnotfoundexception
After that, I input node – V and NPM – V on CMD, which are not internal commands. Then I input node on windows PowerShell to execute. Then I checked the environment variables and found that I used node The installation directory of JS was moved, but the path of the environment variable was not modified. After the modification, everything was normal, but the vscode integration terminal still didn’t work. I checked a lot of data.
Solution:
Right click the vscode icon – properties – compatibility – run as administrator
Read More:
- How to Solve Vscode terminal error (ts -v)
- [Solved] VScode powershell Run ts-node Error: Unable to load file xxxx…
- [Solved] VSCode Edit LaTeX Error: Recipe terminated with error.
- NVM ERROR open \settings.txt: The system cannot find the file specified
- VScode: How to Solve golong plug-in install Error
- [Solved] tsc execute error in VSCode Terminal
- [Solved] ZooKeeper Configurate Error: Error contacting service. It is probably not running.
- NPM start project error: cannot find module ‘webpack’ problem solution
- [Solved] cnpm: Cannot load the file C:\Users\Raytine\AppData\Roaming\npm\cnpm.ps1 because running scripts is prohibited on this system
- Maven configuration error: JAVA_HOME not found in your environment
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- NVM use error: exit status [How to Solve]
- [Solved] This usually happens because your environment has changed since running `npm install`
- [Solved] NRM Error: error code: ‘err’_INVALID_ARG_Type ‘
- Mac error: SH: Vue cli service: command not found
- Mac Error: sh: vue-cli-service: command not found
- Vue Report Error #NULL! :no such file or directory,chmod….. [email protected] **\css- Beautify.js
- [Solved] Typescript installation TS node execution error
- [Solved] Vite Project jenkins Auto Package Error: failed to load config from ../vite.config.js You installed esbuild on