Vue project: npm run dev B error "' Webpack-dev-server ' is not an internal or external command, nor is it a running program or batch file. ”

Source: Internet
Author: User

Prerequisite: The computer has Nodejs and NPM installed, and the project is a ZIP package that is downloaded directly. The error step is 1:cd/d directory; 2. NPM ren dev-------> Errors are as follows:

> Webpack-dev-server--inline--progress--config build/webpack.dev.conf.js

' Webpack-dev-server ' is not an internal or external command, nor is it a running program
or batch file.
NPM err! Code elifecycle
NPM err! errno 1
NPM err! [Email protected] Dev: ' webpack-dev-server--inline--progress--config build/webpack.dev.conf.js '
NPM err! Exit Status 1
NPM err!
NPM err! Failed at the [email protected] dev script.
NPM err! This is probably not a problem with NPM. There is likely additional logging output above.
NPM WARN Local Package.json exists, but node_modules missing, do you mean to install?

NPM err! A Complete log of the This run can is found in:
NPM err! C:\Users\lara\AppData\Roaming\npm-cache\_logs\2018-06-12T09_40_42_892Z-debug.log

Ah, an error after the face of a confused force, thought, not that direct run Dev can open it!!! Calm down and check the reason on the Internet. Much of the web started with the creation of VUE projects and did not find out how to open a project.

Vaguely feel is the installation of the problem, finally see: 79203698 the method of the great God, after trying, hey, 8080 opened ~ ~ ~

My steps:

1. I did not find Node_modules "folder, so directly under the project directory: NPM install;

2. NPM run build;

3. NPM Run Dev successfully waits a few seconds to automatically open the localhost:8080

In addition: a long time ago the installation of node is required to upgrade, Project Package.json has the minimum version of the requirements, so pay attention!

Vue project: npm run dev B error "' Webpack-dev-server ' is not an internal or external command, nor is it a running program or batch file. ”

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.