Technology Sharing

After installing the node package using nvm, installing vue prompts "vue is not an internal or external command, nor an executable program or batch command"

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Preface

use npm installed vue-cli After that, enter "vue -V" Query the vue version command prompt: "vue is not recognized as an internal or external command, operable program or batch command"

Solution

Step 1: First, check if there is an npm folder in the C drive.

The directory is similar to:C:UsersLoginUsernameAppDataRoamingnpm

If not, it is because nothing is installed. npm Packages are usually available.Install nvm After that, node You cannot directly copy the package to this computer. In this case, you need to copy the npm Copy the file or create one manually npm folder)。

Step 2: Configure the environment variable path