Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
171 votes
25 answers
342k views

VSC PowerShell. After npm updating packages .ps1 cannot be loaded because running scripts is disabled on this system

I design websites in VSC and PowerShell is my default terminal. After updating and deploying a website to firebase earlier, I was prompted to update firebase tools - which I did using npm. ...
Aponting's user avatar
  • 1,711
157 votes
26 answers
334k views

How can I solve error "gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config"?

I want to install Adonis Admin. When I run npm install I get: > [email protected] install C:\laragon\www\adonis-admin\node_modules\sqlite3 > node-pre-gyp install --fallback-to-build node-pre-gyp ...
moses toh's user avatar
  • 12.9k
79 votes
6 answers
85k views

Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated

How can I solve this warning when creating laravel project? Steps to replicate: composer create-project --prefer-dist laravel/laravel example cd example composer require laravel/ui php artisan ui vue ...
rhemmuuu's user avatar
  • 1,187
71 votes
6 answers
92k views

npm run dev fails : ValidationError: Invalid options object

Currently learning Vue js and express js through some tutorials, I am still newbie regarding these technologies. Anyway following the tutorials I am building a small project in which I have a folder ...
Dhouibi iheb's user avatar
  • 1,063
66 votes
11 answers
113k views

Sass Loader Error: Invalid options object that does not match the API schema

I'm using VueJS with the framework VuetifyJS (v2.0.19). I'm getting this error after running npm run serve: Sass Loader has been initialised using an options object that does not match the API ...
Tom's user avatar
  • 5,852
64 votes
24 answers
183k views

Command not found with vue-cli

While installing the dependencies of vue-cli, vue is not identified. Why?
Alisha Mohanty's user avatar
53 votes
7 answers
38k views

(thread_id_key != 0x7777), function find_thread_id_key, file ../src/coroutine.cc, line 134

i'm working on a vue program, i tried npm run serve then i got this: 66% building 670/715 modules 45 active /Users/bytedance/go/src/code.byted.org/ad/omega_fe/node_modules/echarts/lib/chart/graph.js## ...
Azure's user avatar
  • 541
51 votes
1 answer
36k views

Vue js project not loading .env variables

I am working on a Vue JS project. I made a .env file in the project's root directory. I made 3 variables. Here is the content of my .env: API_BASE_URL=http://x.x.x.x:yyyy/myproject VUE_APP_TITLE=My ...
user3362334's user avatar
  • 2,130
44 votes
1 answer
54k views

Difference between" npm run serve" and "npm run dev" in vuejs

What is the difference between npm run serve and npm run dev in vuejs. Why should i use npm run serve command to run the project
Codey's user avatar
  • 475
39 votes
2 answers
91k views

Vue command not found [duplicate]

Trying to install Vue, but I am getting an error -bash: vue: command not found. Everything is installed per Vue instructions and I'm not sure why I am getting this issue. Thanks in advance!
lecham's user avatar
  • 2,454
38 votes
10 answers
93k views

Error with node-sass when running npm install

I'm getting the following errors whenever I run npm install on a vue.js project 5769 error code 1 5770 error path /*my path*/node_modules/node-sass 5771 error command failed 5772 error command sh -c ...
Scott Dunn's user avatar
38 votes
5 answers
168k views

How do I fix "the requested module does not provide an export named 'default'"?

I'm developing app using JS and Vue.js and get error on line: import Vue from 'vue' I'm getting this: Uncaught SyntaxError: The requested module '/node_modules/.vite/vue.js?v=6dba2ea6' does not ...
Zixel's user avatar
  • 421
32 votes
7 answers
42k views

Every vue component returning Cannot read property 'parseComponent' of undefined

So I've tried researching this but none of the solutions are working. I think it's an issue with some of my vue dependencies, potentially vue-loader, " but I'm not sure what to do to fix it. I ...
movac's user avatar
  • 1,883
31 votes
5 answers
70k views

npm run server throws error sh: 1: vue-cli-service: not found

I'm trying to setup an existing vue project and getting this error admin@kali:/media/veracrypt1/themeforest-LSerfC0M-skote-vuejs-admin-dashboard-template/Admin$ npm run serve > [email protected] serve /...
Sam B.'s user avatar
  • 2,973
30 votes
3 answers
220k views

Getting : npm WARN using --force Recommended protections disabled

I have an old Nuxt.js package that was developed in Node 12 and I want to use it now with Node 16 (the latest stable) but when I try to install my packages by npm install I'm getting the versions ...
Pejman Kheyri's user avatar
27 votes
6 answers
38k views

DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

I tried to run the Vuetify VueJS Cordova example but got this error after npm run dev node build/dev-server.js Starting dev server... (node:1024) DeprecationWarning: Tapable.plugin is ...
Tom's user avatar
  • 5,852
26 votes
6 answers
36k views

Skipping larger chunks while running "Npm run build"

Facing this problem while trying to run "npm run build" (!) Some chunks are larger than 500 KiB after minification. Consider: - Using dynamic import() to code-split the application - Use ...
Haseeb Saeed's user avatar
24 votes
1 answer
35k views

how to import all css of node_modules in vuejs

I am building a Vue.js app starting with the webpack template and vuetify. To import vuetify css Im doing this in my App.vue <style> @import '../node_modules/vuetify/dist/vuetify.min.css' &...
Diego Manjarrés's user avatar
22 votes
2 answers
70k views

What does scripts "npm run dev" and "npm run watch" is used for?

I'm new in vue, and a documentation says that every time I create a component I have to run npm run dev and npm run watch. But don't know what their purpose is? Can someone help me?
sergioo's user avatar
  • 351
22 votes
4 answers
31k views

How to deploy a finished nuxt.js app to a webserver?

At work, I got some little insight to nuxtjs development and I got very interested in it. So, I started developing on my own a little bit, but now, I'm stuck with my finished project. To develop, I ...
Max Croon's user avatar
  • 327
21 votes
10 answers
78k views

I cannot run any project because of gyp error. How can I fix this: npm ERR! gyp verb cli

Whenever I run my code I always get the same error. I uninstall node and npm and reinstall. But now there is no "node_modules" and I get the same error. How can I fix it? npm ERR! code 1 npm ...
su-wan Kenobi's user avatar
21 votes
3 answers
13k views

Vuejs & npm - Should all dependencies be devDependencies?

I am building a plugin component for Vue.js. Using a standard webpack configuration with vue-loader etc. In a simple library I put modules that I expect to 'require' inside my dependencies in ...
user3690467's user avatar
  • 3,259
21 votes
1 answer
21k views

npm gets killed or errno 137 [closed]

I know there are already lots of questions about this problem, but I simply can´t believe I´m running out of memory. npm run dev > [email protected] dev /usr/www/users/****/**** > node build/dev-...
jus_fabi's user avatar
  • 359
20 votes
5 answers
18k views

npm install -D sass-loader node-sass Vue.js 2021

Hi issue is setting up SASS for Vue.js I run: Node.js - 15.7.0 Vue.js - @vue/cli 4.5.11 This is an error in the console I am having while running this command: npm install -D sass-loader node-sass npm ...
Marko_TON's user avatar
  • 304
19 votes
2 answers
31k views

Difference between npm run dev and npm run production

I am very new in Laravel and vue.js.Please let me know what is the difference between npm run dev and npm run production.Is this something related with the environment?
jisna's user avatar
  • 2,354
19 votes
1 answer
30k views

Vue.js 3: Cannot import Vue global object

I'm going crazy trying to reconcile the Vue 3 CLI output into something that works with various tutorials and plugins that all use the Vue object, as in Vue.createApp(.... In my project, I can use ...
Gregorio246's user avatar
19 votes
15 answers
61k views

stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps

when I try to run npm install it stop at this error [..................] | idealTree:regal: sill idealTree buildDeps I have tried for fix it for a long time and I tried several ways but it was not ...
sina's user avatar
  • 201
18 votes
3 answers
24k views

Vue Cli: Cannot find module '../package.json' error after npm install

I am not an expert in Vuejs or Vuecli, but I do manage to get stuff working. I had a project i worked on before using Vuecli3 and webpack and now when I opened it after few weeks to make changes, i ...
Jenos's user avatar
  • 495
17 votes
4 answers
43k views

Update Vuetify version

To update the Vuetify component library in my project, I changed the version in package.json and ran the command npm install. Vuetify is now removed from the node_modules folder. How should I install ...
HoseinPanahi's user avatar
17 votes
2 answers
18k views

ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema

I just updated some of my packages in my package.json due to vulnerabilities. All vulnerabilities were fixed but the following error appeared when I did npm run. Copy Plugin package got updated during ...
Agus Mathew's user avatar
16 votes
3 answers
12k views

Laravel is not defined

Well i am playing with the new laravel 5.3 and vue.js and i want to do a GET call to some users i have in my DB Im using components btw. This is my app.js require('./bootstrap'); Vue.component('...
NEOJPK's user avatar
  • 805
16 votes
6 answers
17k views

"Cannot read property 'upgrade' of undefined" when starting vue application

I have a project that's been running perfectly for a few months now, able to run npm run serve with no problem. I have to terminate and run the command again whenever I switch networks, but that has ...
kkontagion's user avatar
16 votes
3 answers
54k views

node-sass and sass-loader - Module build failed: TypeError: this.getResolve is not a function at Object.loader

I am simply trying to follow a tutorial which tells me to install both node-sass and sass-loader. When I do I get the following error: ERROR Failed to compile with 1 errors ...
Jethro Hazelhurst's user avatar
16 votes
4 answers
10k views

Vue 3: Module '"../../node_modules/vue/dist/vue"' has no exported member

After updating my npm packages, some of the imports from the 'vue' module started showing errors: TS2305: Module '"../../node_modules/vue/dist/vue"' has no exported member 'X' where X is ...
Vladimir Deev's user avatar
15 votes
1 answer
17k views

Dependency Not found even defined in package.json and node_modules

I use vue.js and vue-cli to create a project. vue init webpack my-project I am trying to create a component using http://photo-sphere-viewer.js.org/, thus I installed it using npm install --save ...
Alocus's user avatar
  • 1,900
15 votes
9 answers
31k views

VueJS - after npm run build I got blank page

After I run "npm run build", I got this tip in the console: Build complete. Tip: built files are meant to be served over an HTTP server. Opening index.html over file:// won't work. In my local ...
Willfrans Varón Sáenz's user avatar
15 votes
2 answers
9k views

Laravel mix vue-template-compiler must be installed as a peer dependency

i got a fresh laravel installation, everything compile well but when I install vuex or vue router through npm, compiling wont work anymore, i got this error: Error: [vue-loader] vue-template-...
Jose Santaella's user avatar
15 votes
7 answers
22k views

npm error transpileDependencies.map is not a function

When I try to run my program I get the following error: I deleted and reinstalled node, but it still gives this error.
AminModaresi's user avatar
15 votes
1 answer
2k views

Unit Testing Vue Component - Jest Setup - Unexpected Identifier error

I am new to Jest and am trying to run a simple unit test just to ensure everything is set up correctly and have been running in to lots of issues troubleshooing errors during compile time. When ...
AnchovyLegend's user avatar
14 votes
8 answers
15k views

NPM: 403 forbidden - PUT http://registry.npmjs.org/[package-name] - Forbidden

I am trying to create npm vue component library. I have been working through all the steps but stuck at npm publish. Please see the below error screenshot for which I am unable to find a solution on ...
Satyam Pathak's user avatar
14 votes
8 answers
30k views

Error : vue-loader requires @vue/compiler-sfc to be present in the dependency tree

I'm getting this error when I'm trying to do npm run serve I have tried npm update sudo npm serve. It didn't work. I also tried deleting the package-lock.json file and doing npm install after that, ...
gokul_santhosh's user avatar
14 votes
2 answers
22k views

TypeError: Cannot read property 'babel' of undefined

Following is my package json file. I have installed node_modules successfully. But Getting the error: "TypeError: Cannot read property 'babel' of undefined" while running "webpack --watch". ...
Abhilasha's user avatar
  • 1,227
14 votes
5 answers
22k views

How to fix 'Cannot find module vue-cli-service.js'?

I'm setting up a new Vue project and when I'm running the command npm run serve into CMD, the following error appears: Error: Cannot find module 'C:\Users\Bram Wicherink\@vue\cli-service\bin\vue-cli-...
Bram's user avatar
  • 165
14 votes
3 answers
5k views

Debug Vue.js App with VS Code. Error Unverified Breakpoint

I have the following problem. I want to debug my Vue.js project with VS Code and Chrome. So I follow the official guide on the website Guide but it dont work. The Problem is that I always get the ...
Darem's user avatar
  • 1,719
13 votes
4 answers
12k views

Cannot find module 'autoprefixer' when running npx tailwindcss init -p command

I'm using Vue 3 and trying to add tailwindcss into it from the following tutorial. https://tailwindcss.com/docs/guides/vue-3-vite#install-tailwind-via-npm I have installed the dependencies using the ...
Asif Mushtaq's user avatar
  • 3,758
13 votes
4 answers
13k views

Nuxt installation error : Rule can only have one resource source (provided resource and test + include + exclude)

I successfully installed Vuejs and Nodejs but got a problem when installing Nuxtjs. This is what I get. I already asked some friends but it didn't work. Thanks for your help ! :) Error : Rule can only ...
tujoker27's user avatar
  • 131
13 votes
4 answers
35k views

npm error cannot find module '@vue/cli-plugin-babel/preset'

I am currently going through a video tutorial on how Vue works and am just learning the basics of components and setting it all up. Yesterday everything was going just fine, I could run npm run serve ...
Tapialj's user avatar
  • 343
13 votes
3 answers
10k views

npm run serve get stuck on 40% while running

It’s been a couple of weeks that I’m working on a Vue js project Vuetify to be specific. I use npm run serve command to build and run a live server. it was working fine everything was okay but ...
Brian's user avatar
  • 183
12 votes
1 answer
8k views

How to create and publish a Vuejs component on NPM

I started working a lot with vue and started to use it in all the projects in the company where I work. And with that, I ended up creating some components, in general autocomplete, I know that there ...
Rafael Augusto's user avatar
12 votes
1 answer
1k views

Vue js Vue-cli performing "npm run build", compiles css for image opacity to 1%

when I perform npm run serve everything work as intended. when I perform npm run build there is "no error". when I loot at the website the images can't be seen, then I inspect element I see the ...
Evan's user avatar
  • 2,467

1
2 3 4 5
29