Solution with node.js installed but npm command unavailable
Today I wanted to create a vue project and found that the npm command was not working
Step 1: Check whether node.js is installed
Step 2: Check that the installation Path of node.js is added to the PATH environment variable
Right-click [this computer], click [Properties] in the displayed menu, then the system setting window will open, click [Advanced system Settings] in the following position, click [Environment variables (N)...] in the pop-up small window of system properties.
Select the Path variable in the system variable, select it, and click the Edit button
In the open window, check whether there is a node.js installation directory, if not, click the new button, make a copy of the node.js installation directory, and then click [OK] button, basically the problem is solved.
If you type npm -v in idea, it still prompts that the command is unavailable, you need to restart the computer.
This is the solution with Node.js installed but the npm command is not available. For more information about the node npm command is not available, please follow other related articles in Script House!
- A solution to the mismatch between nodejs and npm versions
- Command-line programs in NodeJS, project directories, NPM
- Solution to an error message indicating that the nodejs and npm versions do not match
- Solve the whole process of downloading nodejs but npm-v does not react
- The installation of nodeJs and the configuration of npm global environment variables are explained in detail
Related article
-
NodeJs implementation of simple WebSocket instant messaging sample code
This article mainly introduces the NodeJs implementation of simple WebSocket instant messaging example code, the article through the example code introduction is very detailed, for everyone's study or work has a certain reference learning value, the need for friends to learn together with Xiaobian2019-08-08 -
Easily manage versions of Node.js with the n tool
We are testing whether the written Nodejs program can run properly under different Nodejs versions, or we want to try the new features of the latest version of Nodejs, but commonly used code requires the old version of Nodejs, we need to use the Node version management tool. This article describes how to use the n tool to easily manage the version of Node.js, need friends can refer to the next.2017-04-04 -
Summary of the three ways node connects to the MySQL database
Now the front-end will basically use some NodeJs, presumably also want to write some API or personal blog background system, these can not be separated from the problem of connecting to the database, the following article mainly introduces you about node to connect to the MySQL database in 3 ways, the need of friends can refer to2022-08-08 -
Detailed installation procedure and usage of nvm in Windows 10 system
nvm can manage different versions of node and npm, you can simply operate the node version switch, installation, view, etc., the following article mainly introduces you about the Windows 10 system under the nvm detailed installation steps and the use of relevant information, need friends can refer to2022-07-07 -
Description of the buffer.Buffer.byteLength method in node.js
This article mainly introduces the node.js buffer.Buffer.byteLength method use instructions, this article introduces the buffer.Buffer.byteLength method description, syntax, receiving parameters, use examples and implementation source code, need friends can refer to the next2014-12-12 -
Use Node.js to handle the coding of front-end code files
This article mainly introduces the method of using Node.js to deal with the coding problem of the front-end code file,Node comes with the related class library to deal with the coding problem is still relatively handy, need friends can refer to2016-02-02 -
How do I use puppet to replace strings in a file
Today, Xiaobian will share an article about how to use puppet to replace the string in the file. Xiaobian feels that the content is very good. Now share it with you, and it has a good reference value2018-12-12 -
Fixed an issue where Taobao cnpm is not an internal or external command after installation
Today, Xiaobian will share an article to solve the problem that Taobao cnpm is not an internal or external command after the installation of cnpm, which has a good reference value, and I hope to help you. Let's take a look2018-05-05 -
Analysis of the solution to the problem of slow download speed in Node.js
This article mainly introduces the solution to the problem of slow package speed in Node.js, analyzes the npm switch image source and nrm tool image source management related use skills, need friends can refer to2023-04-04 -
Authorized login of nodejs wechat development + to obtain user information
This article mainly introduces the authorized login + access to user information of the development of nodejs wechat, Xiaobian feel very good, now share to you, also give you a reference. Let's take a look2019-03-03
Latest comments