All Questions
1,428
questions
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. ...
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 ...
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 ...
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 ...
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 ...
64
votes
24
answers
183k
views
Command not found with vue-cli
While installing the dependencies of vue-cli, vue is not identified. Why?
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## ...
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 ...
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
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!
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 ...
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 ...
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 ...
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 /...
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 ...
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 ...
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 ...
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'
&...
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?
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 ...
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 ...
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 ...
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-...
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 ...
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?
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
...
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 ...
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 ...
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 ...
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 ...
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('...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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.
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 ...
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 ...
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, ...
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".
...
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-...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...