In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to solve the problem that vue is not an internal or external command, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Solutions: 1, copy the storage path of "vue.cmd" in the computer; 2, right-click "computer" on the desktop, and then select "Properties"-"Advanced system Settings"-"Environment variable"; 3, double-click path, in the pop-up box of edit environment variables, click the "New" button, paste the "Storage path" into the new editing area.
The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.
Vue is not an internal or external command
Previously on:
Download the node installation package from the nodejs official website, install node, use the npm install-g yarn command to install yarn globally, and then use the yarn global add @ vue/cli command to successfully install the global vue-cli.
1. Determine if nodejs and global vue-cli are installed, both of which I have installed here.
two。 Specific description of the problem:
Vue-cli has been installed globally using yarn and has been successfully installed, but when using the vue--version command, an error was reported as "vue is not an internal or external command", that is, the relevant command of vue cannot be used at this time.
3. Solution:
Find the storage location of the vue.cmd file on your computer and add it to the environment variable.
4. Specific methods:
① searches the computer for vue.cmd globally and copies its storage path in the computer
* * another: * * if the situation is the same as mine (vue-cli installed with yarn), you can also run yarn global dir to get the global path of yarn
Copy the path of yarn to your computer and open the node_modules under that directory, as well as the .bin folder under it. You can get the path of vue.cmd. Here is the path of my vue.cmd. Copy it.
The purpose of step ① is to get the local storage path of vue.cmd.
② adds the storage path of the acquired vue.cmd to the environment variable.
Under the computer icon on the desktop, right-click, Properties, and find the advanced system settings, as shown in the figure:
Click the environment variable in the advanced system variables:
Double-click path, in the pop-up box of the edit environment variable, click the "New" button, and paste the storage path of the vue.cmd you just copied into the new editing area. Click OK after the settings are complete.
When the above is done, restart the command window and enter the vue-- version command. If you can see the version of vue, it proves that the problem has been solved. You can execute commands such as vue create demo to create a vue project.
The above is all the content of this article entitled "how to solve the problem that vue is not an internal or external command". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.