This runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run[-script] is used by the test, start, restart, and stop commands, but can be called directly, as well. When the scripts in the package are printed out, they're separated into lifecycle (test, start, restart) and directly-run scripts.
Questions tagged [npm-run]
183 questions
1
vote
1 answer
npm run Build:dev error when doing Advance UI Customization
I wanted to customize the UI elements in the publisher portal and followed this guide
But I get the following error when running this in cmd;
npm run build:dev
ERROR in ./node_modules/@material-ui/core/esm/styles/createPalette.js Module build…

Chess Sam
- 11
- 3
1
vote
0 answers
NPM Run Script trying to run local file named "firebase.js" instead of using Firebase CLI
I have two scripts in a Create React App project that I would like to use when starting up the Firebase Emulator suite: em-startup and em-shutdown.
In package.json:
"em-startup": "firebase emulators:start --import=./data"
"em-shutdown": "firebase…

Drew Daniels
- 314
- 4
- 16
1
vote
1 answer
I can't pass through npm run check_txns --dir=minted
I have ran npm run check_txns --dir=minted but I keep getting the error. Can you guys help me on it please?
moon@Jungs-MBP create-10k-nft-collection-2.0.0 % npm run check_txns --dir=minted
10k-collection-video@2.0.0 check_txns…

myoon19
- 11
- 1
1
vote
4 answers
Angular Build with Date and Build Number
I have an Angular (v12) project that gets updated regularly. Sometimes we do a build two or three times in a single day.
The client wants to display the current version of the application in the format YYYY.MM.DD.x, x being the build number for the…

Lukho Mdingi
- 518
- 1
- 5
- 18
1
vote
1 answer
Vue production build is failing, Where to look for error?
I am building a web app in Vue 2.6.11. I can run it on my local machine with npm run serve, but when I try to build it for production with npm run build I get the following error messages:
internal/modules/cjs/loader.js:638
throw…

Aaron Reese
- 544
- 6
- 18
1
vote
1 answer
Use of pm2 with npm run
I havea react frontendapp for which I defined a number of build and run tasks in package.json as shown in the following snippet:
"scripts": {
"start": "env-cmd -f .env.dev react-scripts start",
"build": "react-scripts build",
"test":…

F. Aydemir
- 2,665
- 5
- 40
- 60
1
vote
1 answer
What are the differences between the processes run by npm command:
Recently I made a simple API server using node.js+express. And the script below is a part of my package.json file I use to run with npm commands.
"scripts": {
...
"release": "cross-env NODE_ENV=production MODE=release node…

Katherine_lee
- 39
- 5
1
vote
1 answer
Error code: 135 - ECONNREFUSED when calling npm run protractor in package.json
I am trying to add some scripts to package.json to run Protractor tests:
"scripts": {
"webdriver-update": "./node_modules/.bin/webdriver-manager update",
"webdriver-start": "./node_modules/.bin/webdriver-manager start…

user9847788
- 2,135
- 5
- 31
- 79
1
vote
0 answers
How do I see edits to my create-react-app after using npm run build?
I'm pretty new to React. I was following a course on Codecademy and working on a project called Jamming. Every time I'd start for the day, I'd used npm start. Then at the end, they had me deploy to surge.sh and use npm run build. After I finished…

Trish Spraggins
- 43
- 9
1
vote
1 answer
how to know which file compile when I run npm run dev
when running npm running its compile CSS and js right? where can I find that file and can I edit it, I want to change the background of my vue2-timepicker, its currently in #dde1e3, I want to change it to #fff / white, and also when I'm using…

NOVELL
- 17
- 8
1
vote
0 answers
npm run serve: Site cannot be reached from other computers
I have installed vue new and I runned vue create .... Then I've tried to reach the site at localhost:8080 (as it was told in the console) directly from my Raspberry Pi I'm working on. Furthermore I've reached the site at the IP-address of my…

STh
- 746
- 9
- 24
1
vote
0 answers
ERROR in No NgModule metadata found for 'AppModule'. when npm run
I'm having this annoying error and don't know what else to do.
If I build the application with ng build I have these warnings, but no error:
WARNING in ./node_modules/mat-table-exporter/node_modules/cdk-table-exporter/fesm5/cdk-table-exporter.js…

Usr
- 2,628
- 10
- 51
- 91
1
vote
0 answers
npm run watch on laravel 6 has many warning and errors
When I run npm install on Laravel 6
I get the following errors:
C:\Users\Hamid\Desktop\LaravelChatApp-master\laravel-chat-master>npm install
npm WARN deprecated babel-preset-es2015@6.24.1: � Thanks for using Babel: we recommend using…

Hamid
- 57
- 2
- 7
1
vote
1 answer
Setting argv in the package.json and running a different script
I have two versions of my application, for one I set --extended, and for the other not, like this
"scripts": {
"build": "webpack --mode production",
"extended": "webpack --mode production --extended",
// ...
}
Now, in my webpack, I…

user3808307
- 2,270
- 9
- 45
- 99
1
vote
8 answers
How to fix : Cannot find module 'webpack/bin/config-yargs'
I've running npm run dev command to run my react app. BUT then it pops up this Error: Cannot find module 'webpack/bin/config-yargs'. I've googled this error. Many people who solve this error tell me to install webpack and webpack-cli. Therefore, I…

Jessie
- 1,155
- 3
- 16
- 27