

So I searched about how to set process.env variables and achieved success by running the command: HOST=0.0.0.0 PORT=3000 npm run devĪfter doing this, I finally get "Your application is running here: " and I'm finally able to see it by browsing to localhost:3000 from the host machine.ĮDIT: Found another way to do it is by editing the dev host and port in config/index.js. However, it didn't look like a good idea to modify these files, because they actually read the HOST and PORT from process.env.


(My setup is: I'm running npm run dev, with webpack 3.12.0, after creating my project using vue init webpack on an Ubuntu 18.04 virtualbox under Windows. I struggled with some of the other answers.
