Top "Npm" questions

npm is the package manager shipped with Node.

sudo: npm: command not found

I'm trying to upgrade to the latest version of node. I'm following the instructions at http://davidwalsh.name/upgrade-nodejs But …

node.js unix npm
How to solve npm error "npm ERR! code ELIFECYCLE"

I'm trying to learn react, so I have this sample code for the full-stack react voting app, and I am …

node.js npm npm-install npm-start npm-live-server
Node.js - SyntaxError: Unexpected token import

I don't understand what is wrong. Node v5.6.0 NPM v3.10.6 The code: function (exports, require, module, __filename, __dirname) { import express …

javascript node.js npm ecmascript-6
npm WARN package.json: No repository field

I installed Express.js with the following command: sudo npm install -g express I get the following warnings: npm WARN …

node.js express npm
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
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a package-lock.json …

node.js git npm version-control lockfile
How to install an npm package from GitHub directly?

Trying to install modules from github results in: ENOENT error on package.json. Easily reproduced using express: npm install https://…

github npm npm-install node-modules
Sending command line arguments to npm script

The scripts portion of my package.json currently looks like this: "scripts": { "start": "node ./script.js server" } ...which means I …

javascript node.js npm
How to clean node_modules folder of packages that are not in package.json?

Assume I install project packages with npm install that looks into package.json for modules to be installed. After a …

node.js package npm
npm throws error without sudo

I just installed node and npm through the package on nodejs.org and whenever I try to search or install …

node.js unix permissions npm sudo