Skip to content
xidedix edited this page Jul 24, 2018 · 9 revisions

Welcome to the CoreUI-Vue wiki!

FAQ:

1. node_modules

Check what's your version of node and npm. Update when necessary.

Whenever you change node versions you'll need to remove your node_modules, package-lock.json and run npm install


No such file or directory error in node_modules/...

sometimes things go wrong with npm install
try:

  • remove node_modules directory
  • remove package-lock.json file
  • then npm install

Module build failed: Error: ENOENT: no such file or directory, scandir './node_modules/node-sass/vendor'

ERROR Failed to compile with 1 errors 23:33:38

error in ./src/App.vue

run npm rebuild node-sass


2. Unable to start with this project

assuming that you've got node & npm installed properly
try this way:

cd Vue_Starter  
npm install
npm start

3. How to start vue after doing npm run build?

Built files are meant to be served over an HTTP server.

If you don't have your own server, and you want to test your build locally, you can set up a local web server on your computer.

# install globally:
npm install http-server -g
# then navigate to your dist folder:
cd dist
# and start the server:
http-server -o
# install globally: 
npm install -g serve
# and start the server:
serve -s dist

4. Works with Vue CLI 3 and Webpack 4

Tweaking the Webpack config can be done via the new vue.config.js file. If you want to add a Webpack plugin, place your code into the configureWebpack property. To see the runtime config, use the command vue inspect.