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:
- VSCode Terminal Execute tsc Commands Error [Solved]
- How to Solve Vscode terminal error (ts -v)
- [Solved] tsc execute error in VSCode Terminal
- [Solved] Vscode1.71.0 terminal error: `sed: illegal option — r`
- Vscode configures eslint to solve terminal syntax error
- [Solved] VScode powershell Run ts-node Error: Unable to load file xxxx…
- ValueError: Input 0 of node import/save/Assign was passed float from import/beta1_power:0 incompatib
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] Vscode error: Unable to resolve resource walkThrough://vscode_getting_started_page
- Node Kubelet Error: node “xxxxx“ not found [How to Solve]
- [Solved] Springboot integrate Seata Error: error creating bean with name ‘globaltransactionscanner’‘
- VScode: How to Solve golong plug-in install Error
- vscode git error: would clobber existing tag [How to Solve]
- Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported
- [Solved] MacOS terminal Run git command Error: xcrun: error: invalid active developer path
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- [Solved] VScode Error: find_package(catkin) failed
- [Solved] internal/modules/cjs/loader.js:892 ^Error: Cannot find module ‘C:\Users\LX\Desktop\Node_DEMO\a
- Mybatis Integrate SQLSERER Null Value Error: Error setting null for parameter # with JdbcType OTHER
- Vscode uses /deep/ Syntax error [How to Solve]