Vue CLI not working

nodejs

#1

Hi,

I followed instructions to install vue-cli through npm, then install npm in the new folder and run vue cli with webpack-simple installed. A message said vue cli is running on localhost:8081. I tried going to https://udemy-meteor-react-sdez.c9users.io/vue-cli/ and saw a blank page. How do I get to a live page?
> vue-cli@1.0.0 dev /home/ubuntu/workspace/vue-cli

cross-env NODE_ENV=development webpack-dev-server --open --hot

 Project is running at http://localhost:8081/
 webpack output is served from /dist/
 404s will fallback to /index.html
 loaderUtils.parseQuery() received a non-string value which can be problematic, see         
 https://github.com/webpack/loader-utils/issues/56
 parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

#2

This might be a bit late but…
Try updating node version: How to update Node.js
and then your npm version as well: How to upgrade NPM

With that done try using “webpack” template instead of “webpack-simple”.
General “webpack” template is building just fine, again the overall approach is different from simple version though.

It should have been fixed within github.com/vuejs/vue-loader/issues/666 though it didn’t help much for ‘simple’ template but I might be missing something here :slight_smile:


#3

I had this issue updating the version actually made other problems which I couldn’t fix. By just using webpack instead of webpack-simple, I was able to get the project running.