Tag: npm

56 votes
16 answers
1.6K views
How to install an npm package from GitHub directly

Trying to install modules from GitHub results in this error: ENOENT error on package.json. Easily reproduced

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
58 votes
3 answers
2.6K views
NPM Install failing in docker container - npm WARN tar ENOENT: no such file or directory

I am trying to compile a Nativescript application as part of our Teamcity deployment strategy. When I run NPM

avatar
Thurman
0 1 0 9
asked 07 September, 2021
61 votes
0 answers
1.3K views
NIghtwatch Upgrade Error from 1.6.4 to 1.7

Issue: I am getting "unable to create session error" after upgrading Nightwatch from 1.6.4 to 1.7. Findings: T

avatar
Percy
0 1 0 9
asked 07 September, 2021
52 votes
12 answers
1.6K views
'node' is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova

I am using phonegap/cordova. Everthing is installed propelry i.e cordova, phonegap, ant,sdk,jdk. But now i

avatar
Corrin
0 1 0 9
asked 07 September, 2021
55 votes
22 answers
2K views
How to specify a port to run a create-react-app based project?

My project is based on create-react-app. npm start or yarn start by default will run the application on port 3

avatar
Patsy
0 1 0 9
asked 07 September, 2021
56 votes
10 answers
2.8K views
Difference between npx and npm?

I have just started learning React, and Facebook helps in simplifying the initial setup by providing the follo

avatar
Freida
0 1 0 9
asked 07 September, 2021
43 votes
12 answers
1.6K views
Why does "npm install" rewrite package-lock.json?

I just recently upgraded to npm@5. I now have a package-lock.json file with everything from package.json. I

avatar
Arline
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
1.3K views
How to list npm user-installed packages?

How do I list the user-installed package ONLY in npm? When I do npm -g list it outputs every package and their

avatar
Dario
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
2.4K views
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

avatar
Solomon
0 1 0 9
asked 07 September, 2021
57 votes
17 answers
3K views
What is the difference between --save and --save-dev?

What is the difference between: npm install [package_name] and: npm install [package_name] --save and: npm i

avatar
Forrest
0 1 0 9
asked 07 September, 2021
61 votes
17 answers
2.7K views
Sending command line arguments to npm script

The scripts portion of my package.json currently looks like this: "scripts": { "start": "node ./script.js

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
539 views
How to install a previous exact version of a NPM package?

I used nvm to download node v0.4.10 and installed npm to work with that version of node. I am trying to inst

avatar
Forrest
0 1 0 9
asked 07 September, 2021
67 votes
23 answers
1.7K views
Where does npm install packages?

Can someone tell me where can I find the Node.js modules, which I installed using npm?

avatar
Sydney
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
951 views
How can I uninstall npm modules in Node.js?

As commonly known, any npm module can be installed by running a simple command: npm install <module_name>

avatar
Elicia
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.6K views
How to fix npm throwing error without sudo

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

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
49 votes
30 answers
473 views
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19. My node versi

avatar
Elicia
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
2.3K views
How can I update NodeJS and NPM to the next versions?

I just installed Node.js and npm (for additional modules). How can I update Node.js and the modules which I&a

avatar
Wilber
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
2.4K views
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 pac

avatar
Dusty
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
781 views
How to update each dependency in package.json to the latest version?

I copied package.json from another project and now want to bump all of the dependencies to their latest versio

avatar
Keila
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
2.2K views
What&apos;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 s

avatar
Carmelina
0 1 0 9
asked 07 September, 2021