Solution _node.js_ Script home with node.js installed but npm command unavailable

Solution with node.js installed but npm command unavailable

Updated: March 28, 2024 10:41:03 Author: Mu Yu Orange Fengιε
This article mainly introduces the installation of node.js but the npm command is not available solution, the article through the combination of graphics to give you a very detailed introduction, to solve the problem has a certain help, the need of friends can refer to the next

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!

Related article

  • NodeJs 实现简单WebSocket即时通讯的示例代码

    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 Xiaobian
    2019-08-08
  • 利用n工具轻松管理Node.js的版本

    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
  • node连接MySQL数据库的3种方式总结

    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 to
    2022-08-08
  • window10系统下nvm详细安装步骤以及使用

    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 to
    2022-07-07
  • node.js中的buffer.Buffer.byteLength方法使用说明

    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 next
    2014-12-12
  • 使用Node.js处理前端代码文件的编码问题

    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 to
    2016-02-02
  • 如何使用puppet替换文件中的string

    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 value
    2018-12-12
  • 解决淘宝cnpm 安装后cnpm不是内部或外部命令的问题

    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 look
    2018-05-05
  • Node.js中下包速度慢问题解决方法分析

    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 to
    2023-04-04
  • nodejs微信开发之授权登录+获取用户信息

    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 look
    2019-03-03

Latest comments