Top "Npm-scripts" questions

The "scripts" property of the package.

How can I reference package version in npm script?

I want to reference my package version in a npm script so I can show current version in the app. …

npm package.json npm-scripts
npm scripts: read .env file

I have a simple requirement: In my npm scripts package.json file I have the line: { "scripts": { "example": "some-lib --argument …

npm npm-scripts
NPM Run Build Always Builds Production and Never Development

On an inherited project I have, I am trying to get the build command to build a version other than …

node.js npm package.json npm-scripts
run batch file in npm script

Is it possible and how to run a batch script in npm command? I have an angular project, in package.…

batch-file npm-scripts
npm package.json OS specific script

I would like to create a package.json build script that executes slightly different set of commands when run from …

node.js npm package.json npm-scripts
How to set env var for .npmrc use

I need a module in my project to download a private npm package. To accomplish this, I am using a .…

node.js npm package.json npm-scripts
Why is npm running prepare script after npm install, and how can I stop it?

Whenever I run npm install <package> it installs the package alright, but then it automatically runs the prepare …

node.js npm npm-install npm-scripts
react.js - running npm run build with custom paths

Running npm run build command on react-create-app project creates a build folder and some default paths inside all files like …

reactjs npm-scripts npm-run react-create-app
babel polyfill being included, but forEach still doesn't work in IE11 on NodeLists

I've got Webpack working with Babel and including the @babel/polyfill, yet IE11 is still throwing a SCRIPT438 error when …

javascript webpack babeljs npm-scripts babel-polyfill
Nodejs npm scripts fail with "SyntaxError: Unexpected token {"

I've just imported my Reactjs project to a new machine on Ubuntu and installed most dependencies with npm install successfully …

javascript node.js ubuntu npm-scripts