vue-cli-project | Vue.js 2.x 实战开发项目脚手架 | Command Line Interface library
kandi X-RAY | vue-cli-project Summary
kandi X-RAY | vue-cli-project Summary
Vue.js 2.x 实战开发项目脚手架
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-cli-project
vue-cli-project Key Features
vue-cli-project Examples and Code Snippets
Community Discussions
Trending Discussions on vue-cli-project
QUESTION
Vue.js Automatically picks up a new port every time a dev build is being created.Whenever i try to run npm run dev
it automatically selects a port on its own instead of the one mentioned in config/index.js
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
I understand the comment mentioned here,but when i tried to change port in build/webpack.dev.conf.js
too
ANSWER
Answered 2018-Jul-31 at 17:59Vue is picking up a new port automatically, because it finds the current port as busy. You can check if the port is already in use or not, if yes then do the following:
Find if port (here '8080') is in use:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-cli-project
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page