Questions tagged [npm-run]

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.

Reference:

183 questions
0
votes
2 answers

VSTS npm custom build task - run npm script fails with type error

I've defined some scripts in my package.json, e.g., "config": { "source": "./assets/stylesheets/civica-styles.scss", "dist": "./dist/civica-styles.css", "minCss": "./dist/civica-styles.min.css" }, "scripts": { "transpile":…
James B
  • 8,975
  • 13
  • 45
  • 83
0
votes
0 answers

npm wildcards break stylus compilation in cygwin

I have the following package.json { "name": "express-example", "version": "0.0.0", "private": true, "scripts": { "build-css": "stylus source/stylesheets/* -o static/css/", "watch-css": "stylus source/stylesheets/index.styl -o…
MrDuk
  • 16,578
  • 18
  • 74
  • 133
0
votes
0 answers

Angular 2 Error on fetch for javascript library (npm run build.prod)

I am using the Angular 2 seed project from https://github.com/mgechev/angular-seed, also installed "npm install angular-2-local-storage". When I run the project by using "npm start" everything works fine as expected. The problem comes when I run…
0
votes
0 answers

Is npm-run still needed?

Running npm 3.10.3 and node 6.7.0 on Ubuntu, I was using the "npm-run" package to allow using executable node scripts locally in a cross-platform way. So, for example, for some simple ava tests I ran with the following in package.json. "scripts":…
John Lockwood
  • 3,787
  • 29
  • 27
0
votes
2 answers

different version of Typescript used in `npm run` script

I use npm as my build tool and one of the entries in the scripts dictionary of my packages.json file is "tsc", which causes the .ts files in my project to be compiled. However I noticed that I was getting different TypeScript error messages when I…
Jthorpe
  • 9,756
  • 2
  • 49
  • 64
0
votes
2 answers

Does a npm run-script named "install" has special status?

I have a package.json with both "dependencies": { "d3": "~3.5.5", "forever": "^0.14.1" }, "scripts": { "install": "make -f install.makefile" "data": "make -f data.makefile core", "serve": "node ./node_modules/.bin/forever…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
-1
votes
1 answer

npm run is failing

I want to build React project as per environment like development, staging and production. below is snapshot of scripts section inside package.json file. "scripts": { "start development": "REACT_APP_ENV=development react-scripts start", …
pjsagar
  • 241
  • 3
  • 11
-1
votes
1 answer

Unable to run npm command "Error: Command failed: npm run start"

I am trying to run a npx command on my M1 MacBook but I keep getting the same error. I already installed node.js and npm so that I could run this command: npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react However, when I run this…
mpp
  • 308
  • 1
  • 14
-1
votes
1 answer

I’m getting the error down at the terminal, anytime I type npm run dev on the terminal. I have the dependencies already in my package.json

enter image description here It shows that error and I’ve tried so many times enter image description here
-1
votes
2 answers

I get a deploy error on Windows with "npm run build"

I got this error when I was running the npm run deploy command in the terminal, how can I resolve this error?
yogesh kumar
  • 103
  • 10
-1
votes
1 answer

trying to compile my sass with css in json "npm run sass"

i have install sass i am trying to compile my sass with css in json. In the script part I think I correctly linked the sass and css files. But when I run "npm run sass" I have this problem. Why do you think? enter image description here
-1
votes
1 answer

Arguments of npm script

I have following package.json file: ..... "scripts": { "script1": "node script1.js", "script2": "npm run script1 && node script2.js" }, ..... > npm run script2 --port '8081' Now, flag --port is used only in script2. How can I pass this flag in…
alexdf
  • 211
  • 2
  • 7
-2
votes
1 answer

Trying to register a compile srcipt but src does not exist and I actually have it on my public folder, what do I do?? REACT

So I registered a compile script in package.json: "compile": "babel src --out-dir public", and when I put in git CMD npm run compile (my compile script) it is supposed to run it, but instead it gives me an…
hectorJDH
  • 21
  • 4
-2
votes
1 answer

How do I fix npm missing script: "i"

Technical environment : VsCode / React Native / Expo / Firebase Hello I have a problem, following an uninstall of my packages manually, because yes I am a turkey I did it by hand by removing the package myself in package.json, following that I have…
Senzaki
  • 9
  • 4
-2
votes
2 answers

Laravel 8 : npm run dev error Unknown option '--hide-modules'

I have tried to run npm run dev and got this error: I've tried: composer update rm -rf node_modules npm cache clean npm install npm outdated npm install npm run dev and still didn't work. Can someone help me?
Preman Terminal
  • 149
  • 4
  • 16
1 2 3
12
13