Top "Package.json" questions

All npm packages contain a file, usually in the project root, called package.

What's the difference between tilde(~) and caret(^) in package.json?

After I upgraded to latest stable node and npm, I tried npm install moment --save. It saves the entry in …

node.js npm package.json semantic-versioning
Start script missing error when running npm start

I'm receiving this error when trying to debug my node application using the npm start command. Error: npm ERR! Windows_…

javascript node.js express package.json npm-scripts
What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

This documentation answers my question very poorly. I didn't understand those explanations. Can someone say in simpler words? Maybe with …

node.js npm dependencies package.json
How to set environment variables from within package.json

How to set some environment variables from within package.json to be used with npm start like commands? Here's what …

node.js npm package.json npm-scripts
"unexpected token import" in Nodejs5 and babel?

In js file, i used import to instead of require import co from 'co'; And tried to run it directly …

javascript node.js ecmascript-6 babeljs package.json
npm install private github repositories by dependency in package.json

I'm trying to install github private repository by npm that includes other private github repositories as dependency. Have tried a …

node.js github dependencies npm package.json
How do I add a custom script to my package.json file that runs a javascript file?

I want to be able to execute the command script1 in a project directory that will run node script1.js. …

javascript node.js package.json run-script
Field 'browser' doesn't contain a valid alias configuration

I've started using webpack2 (to be precise, v2.3.2) and after re-creating my config I keep running into an issue I …

npm webpack commonjs webpack-2 package.json
Error: EPERM: operation not permitted, unlink 'D:\Sources\**\node_modules\fsevents\node_modules\abbrev\package.json'

I just updated npm to 5.4.0. Now, Whenever I want install a npm package I get the following error: D:\Sources\…

npm package.json
How to use private Github repo as npm dependency

How do I list a private Github repo as a "dependency" in package.json? I tried npm's Github URLs syntaxes …

node.js git github npm package.json