-
-
Notifications
You must be signed in to change notification settings - Fork 971
Home
Welcome to the CoreUI-Vue wiki!
FAQ:
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
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
assuming that you've got node & npm installed properly
try this way:
cd Vue_Starter
npm install
npm start
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
.