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
0
votes
0 answers
Node.js npm run dev throws missing module error
I'm running ubuntu on Virtual Machine on a windows computer; I have node.js and npm installed globally (node version 10.6.0; npm version 6.4.1). I cloned a React app from our internal bitbucket repo, checked out to a branch and created a new branch…

Roger Dodger
- 927
- 2
- 16
- 37
0
votes
0 answers
Seems to get an error when trying to start webpack
Seem to have this problem even if i reinstalled it, deleted node-modules/package-lock.json/ downgraded to a earlier version
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Users\\Shaimz\\Desktop\\work\\Programs\\node.exe',
1 verbose cli …

Vicol Cristian
- 95
- 1
- 8
0
votes
1 answer
Getting error when running npm-run after git merging conflicts
I get the following error when I run npm run watch/npm run dev after a git merge where I resolved some conflicts manually:
/Users/Julia/sites/kickback/webpack.mix.js:19 <<<<<<< HEAD ^^
SyntaxError: Unexpected token <<
at new Script…

Code Worm
- 313
- 1
- 4
- 16
0
votes
0 answers
DropDown not getting displayed with the npm run build
Im very new to react and Im finding difficulty to solve the error. As im running my code with npm start, the dropdown is getting displayed but when I build my code using npm run build it is throwing an error. I need a help for this.
Error: Failed to…
0
votes
0 answers
VUEJS Compile problem 76% basic chunk optimization RemoveParentModulesPlugin
I use vuejs in my project. After developing some days i face a big problem in compilation. When i compile my project using npm run serve my its takes 2-3 minutes in 76% basic chunk optimization RemoveParentModulesPlugin .
My node version: 11.12
npm…

Nadimul De Cj
- 484
- 4
- 16
0
votes
2 answers
Nest js: npm run start fails
I'm trying to create a Nest js application, but when I follow the steps on their website, the first error I get is 'cannot find ts-node'. So, I installed that. There were a couple more typscript modules I needed to install (typscript and…

user123546863
- 1
- 1
- 7
0
votes
1 answer
Passing arguments via npm scripts
I've read a bunch of answers suggesting to do something like
npm run dev -- --nodebug:true
but what I then see executed is
webpack-dev-server --hot --colors --port 3000 "--nodebug:true"
I do not want these quotes as then the next part of the…

Simon H
- 20,332
- 14
- 71
- 128
0
votes
0 answers
Unexpected result from building react-app
I have issue when building newest versions of React.
When I run npm run build it builds in chunks.
Result of build:
File sizes after gzip:
34.45 KB build/static/js/1.2dd891c4.chunk.js
763 B build/static/js/runtime~main.229c360f.js
711 B…

prius
- 103
- 4
- 12
0
votes
1 answer
Error: Cannot find module './Assert' When Running npm run watch with Laravel
I randomly started getting this error message when I try to run npm run watch. I don't know what I did that would cause it to have an error since I never touched any of the files related to laravel-mix.
> cross-env NODE_ENV=development…

Casey
- 536
- 2
- 14
- 28
0
votes
0 answers
NPM/React - using renamer
Django 2.0, Node.js 8.11.4
I have a djanog project of the format:
My project structre looks like this:
reactify/
└── src/
├── reactify-ui/
| ├── build/
| | └── static/
| | └── js/
| | └── main.3425.js
…

Micah Pearce
- 1,805
- 3
- 28
- 61
0
votes
1 answer
NPM/React: copyfiles not running correctly
Django 2.0,
Node.js 8.11.4
I have a djanog project of the format:
reactify/
└── src/
├── reactify-ui/
| ├── build/
| | └── static/
| | └── js/
| | └── main.3425.js
| └── package.json
└──…

Micah Pearce
- 1,805
- 3
- 28
- 61
0
votes
0 answers
npm run build doesnt show anything - react js
I want to build my project with npm run build
and
when I build my project, all files are build correctly
and CSS file,favicon,manifest,js file are load.
But my js file does not show anything.
I am using BrowserRouter
I don't use webpack
This is my…

Matt Rose
- 151
- 2
- 3
- 7
0
votes
1 answer
Vue native: npm run watch:android
I have some problems with npm run watch:
I've already done:
$ npm install -g @vue/cli @vue/cli-init
$ vue init nativescript-vue/vue-cli-template
$ cd project-name
$ npm install
And for the next step I have this:
```λ npm run…

GregVolk
- 1
- 2
0
votes
1 answer
Alternative on "npm run eject"
Will a ReactJS app project be ended when I simply close the CLI, while in first instance the Node.js Package Manager was running the developer server through the "npm start"-command in the CLI? Or will the ReactJS app project run in the background?…

Maximiliaan
- 3
- 4
0
votes
1 answer
npm run build:prod crashing in Ubuntu 16.04 but not Windows 10
I'm trying to run "npm run build:prod", but I'm getting errors on Ubuntu 16.04 which I don't see in Windows 10. I have recent versions of npm and node. I can't tell if this is a problem with npm or angular.
I checked the debug log and it says it's…

Tony Martinez
- 335
- 3
- 16