Home > database >  About VS Code out cannot be identified as "NPM" item pre-existing cmdlets, function, and t
About VS Code out cannot be identified as "NPM" item pre-existing cmdlets, function, and t

Time:09-24

The front-end VUE development
VS Code running NPM run serve a problem, look for baidu results following
Internet experience a:
Command or command in a terminal window cannot be input function cannot identify solution,
As long as the right vscode icon, compatibility selected card set up as an administrator to perform all normal,
Operation: the vscode shortcut icon right attribute, open the "compatibility" TAB, check "run this program as an administrator", and then restart vscode, is back to normal,
If not yet, they only need to restart my computer, I eventually is to restart the computer to),
If vscode prompt vscode cannot be identified as "NPM" item pre-existing cmdlets, function, and the name of the script file or can run the program, is first installed node. Js,

Network experience. 2:
1. Solve the download speed
Because we download the default is NPM, connect the overseas server, so speed is not very good, may not package
Install NRM use NPM I NRM - g our general kit are downloaded to the global installed, you can run the command "NRM ls (ls list)" to view all of the server list
Using command NRM use server name to switch to download server address
2. Solve
Cannot be identified as "NRM" item pre-existing cmdlets, function, and the name of the script file or can run the program, please check the spelling of name if the include path, please ensure that the path is correct, then try again,
Problem solving method 1. First we check your installation CNPM (see the command: NPM list - depath=0 and g) 2. If not we will install CNPM (see the command: NPM I CNPM - g) 3. If the installation was successful, or an error please look at your own installation path (see command: NPM config get prefix) 4. We will open the my computer (right) - & gt; Property - & gt; The high-level system - & gt; Find advanced this column - again & gt; Open the environment configuration - & gt; Find the path - & gt; Add your own NPM installation path is (NPM config get prefix) added to the path to save the path - & gt; Preserved determine - & gt; And then we open the CMD use NRM ls can see the executed command NRM ls shown earlier * is your solutions with the server to download address is above the current NPM download speed is slow and can not be identified as "NRM" item pre-existing cmdlets, function, and the name of the script file or can run the program, please check the spelling of name if the include path, please ensure that the path to the correct

Tried many times, however, I still won't do