Skip to main content

All Questions

Tagged with
0 votes
0 answers
66 views

What is a good way to prevent file getting renamed when running npm run build

I am running npm run build for production and this is my script code. "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", "lint": "eslint . --ext .vue,.js,...
Shinzie's user avatar
  • 15
0 votes
1 answer
330 views

How to force exit an vue cli thread on completion in a deploy script (e.g. ctrl c equivelant)

I'm using Laravel Forge to run a simple deploy script. npm run build calls 'vue-cli-service build'. Script below. The script 'ends' on DONE Build complete. The dist directory is ready to be ...
A-Bop's user avatar
  • 68
1 vote
1 answer
843 views

How to run Vue.js app locally & run Cypress tests against it sequentially using npm script

I am trying to run a Vue.js app locally (localhost:3000) & then run Cypress tests against it. Below are some npm scripts in my package.json: "dev": "nuxt", "cypress": ...
user9847788's user avatar
  • 2,433
1 vote
4 answers
7k views

npm ERR! Cannot read properties of undefined (reading 'stdin')

I have an error when running vue.js 3 with vite I added nodejs into Variable Environments before I have tried these things but not working using npm cache clear & npm cache clear --force but ...
Joker Dark Knight's user avatar
0 votes
0 answers
2k views

"npm run serve" giving error in windows cmd

In windows, when I run the command "npm run serve" in command prompt for viewing my vue js project it is showing some errors C:\Users\HOME\app>npm run serve npm ERR! Missing script: "...
user avatar
0 votes
1 answer
3k views

npm ERR! missing script: start Vue.js Error

When I install Vuetable. ( npm install vuetable-2@next --save ) I get the following error: npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! x\AppData\...
Jany Fossie's user avatar
6 votes
2 answers
2k views

npm run dev doesn't work in Laravel project : TypeError: program.parseAsync is not a function

I installed vue with npm in my current on-going laravel project to learn front-end dev with vue.js framework. After installing, the tutorial said I needed to run npm run dev to see the changes I made ...
Gediminas's user avatar
0 votes
2 answers
357 views

nuxt build pauses after upgrade to node 15

After I upgraded my nuxt application to Node 15, the build pauses indefinitely. The local dev server stays paused with a "Loading..." message. My problem here is --loglevel verbose is not ...
Naveen Karnam's user avatar
0 votes
1 answer
961 views

Prefix source paths in the output of `npm build`

I have created a small vue application using vue-cli. I use npm run build to produce the production version of the UI, which ends up with a bunch of CSS, js, and an HTML page file that has all of ...
orezvani's user avatar
  • 3,785
4 votes
0 answers
9k views

How to fix missing script : serve?

When I run npm run serve in terminal, I got error "missing script : serve" and here my package.json file : { "name": "internship", "version": "0.1.0&...
New user's user avatar
  • 147
4 votes
0 answers
1k views

browsing is not detecting code changes after npm run serve

I have installed vue-cli (4.4.6). To run the project i am using "npm run serve". So, whenever I am doing any change in my code the npm compile the code but on browser changes are not ...
Sachin's user avatar
  • 176
2 votes
2 answers
3k views

How to auto save compiled vue files when running npm run serve

With vue.js when setting up a project using vue CLI i can run $ npm run serve to compile the files and start a port at localhost:8080 My question is what can i do so that the generated that got ...
Emmanuel David's user avatar
1 vote
0 answers
18 views

npm build omits some vuetify elements

Was having some trouble with building a shared app/package in vueJS, the app is using vuetify, what is interesting is that the built code contains almost everything except for v-tooltip that is inside ...
Michael's user avatar
  • 5,058
0 votes
0 answers
520 views

Environment variables are not being set in npm scripts using cross-env

I am trying to run npm run test, where part of test is setting an environment variable using cross-env. However, in Cypress testing the environment variable is not actually changed. Thanks for the ...
tpinto's user avatar
  • 41
7 votes
1 answer
3k views

Chaining package.json scripts to start Express server and Vue app

I have built an app using Vue.js and express.js. Currently I have to open two terminal windows and run npm run serve in one and npm start in the other. I want to make the server run after the Vue.js ...
jaronow's user avatar
  • 113

15 30 50 per page