Questions tagged [npm-install]

npm install is a command in the npm CLI that searches for and installs a specified package from an npm repository.

is a package manager for .

npm install <packagename> is a command in the npm CLI that searches for and installs a specified package from an npm repository. In addition, it will install any packages that the specified package depends on.

Reference:

5374 questions
2
votes
1 answer

Proper way to add packages in Vue.JS SPA

I'm working on a vue-cli/webpack project, and so far I've been adding packages with the following command: yarn add --dev It saves them in the package.json file under the devDependencies. Everything works fine, but my build time is ~1 min.…
ierdna
  • 5,753
  • 7
  • 50
  • 84
2
votes
1 answer

yarn install can't find package but npm install can

I'm using yarn to manage my npm packages. If I do npm install, it all works fine. However, if I try doing yarn install it fails with the following error: info No lockfile found. [1/4] Resolving packages... error Couldn't find package "ag-grid" on…
Vlad Schnakovszki
  • 8,434
  • 6
  • 80
  • 114
2
votes
2 answers

npm install fail -- error message: enoent ENOENT: no such file or directory

i'm building an Vue.js project using vue init webpack project_name,after this step I ran npm install. and npm threw out errors below: npm ERR! path /Users/duodian/Desktop/crop-demo/node_modules/js- beautify/js/bin/css-beautify.js npm ERR! code…
fadeaway
  • 95
  • 1
  • 6
2
votes
2 answers

'npm ERR! self signed certificate' when running npm install as part of docker build

I have a Dockerfile inside which I run npm install ... RUN npm install .... This errors out with the following: npm ERR! Linux 4.4.0-92-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v7.10.1 npm ERR! npm …
boboverflow
  • 309
  • 4
  • 10
2
votes
1 answer

Installing js file using npm

I am trying to install .js package using npm but I am getting an error about the repository right in git. This is the command. npm install -S apiconnect-cli-logger/logger.js and I am getting the following error
Rezwan
  • 1,203
  • 1
  • 7
  • 22
2
votes
0 answers

npm install wipes out any linked modules

Say I npm link moduleA, and then in projectB I run npm link moduleA, then I wind up with a symlink to moduleA in projectB/node_modules/moduleA. However, if I run npm install in projectB, then moduleA is now missing from projectB/node_modules and I…
Alex Bollbach
  • 4,370
  • 9
  • 32
  • 80
2
votes
1 answer

Can't install phantom-js to angular project.

I would like to add phantomJS library to my angular4 project to continuous integration with jenkins. I tried to dfo it in many ways, but I always get the same (or similar) error. For example, for this tutorial when I tried install phantomJS and…
Jaroslaw K.
  • 5,224
  • 2
  • 39
  • 65
2
votes
0 answers

Node.JS - Error with Node-gyp and/or ELIFECYCLE while using npm install

I'm trying to install the npm library "Sharp" but when I try to run the npm install command, I get this in my console: > sharp@0.18.2 install C:\Users\apixe\Documents\GS Bot\Bots\Child\node_modules\sharp > node-gyp…
APixel Visuals
  • 89
  • 1
  • 1
  • 12
2
votes
5 answers

npm command create-react-app failled

I am trying to test reactjs on my computer (mbp pro 2017) running OsX sierra 10.12.6. I have followed the Facebook tutorial: Make sure you have a recent version of Node.js installed. (done) Follow the installation instructions to create a new…
franckfournier
  • 344
  • 1
  • 4
  • 12
2
votes
0 answers

npm fails a fetching tar.gz from a https regisitry but the browser can fetch it

In short I am facing some issues when installing node-sass via npm (https://www.npmjs.com/package/node-sass). It seems that the https registry is the actual underlying on my side, since I am behind a ".pac"-like proxy, this happens regardless of…
Natalie Perret
  • 8,013
  • 12
  • 66
  • 129
2
votes
3 answers

Does NPM install run in a sandbox?

Basically what's to prevent me from publishing an NPM module with arbitrary installation script that steals everything from your computer when you npm install my-malicious-package if the installation is not running in sandbox? In this article they…
Kousha
  • 32,871
  • 51
  • 172
  • 296
2
votes
2 answers

Angular/cli installation Error

I am getting below huge error when trying to install @angular cli using npm I am working in a company network. This works when I create cli project at home. npm install -g @angular/cli C:\Users\nitin.shekhar\AppData\Roaming\npm\ng ->…
Nitin Shekhar
  • 175
  • 2
  • 15
2
votes
0 answers

Include dependancies to package.json in NPM

I'm new to node.js I've been adding libraries to node_modules manually, without using the command line NPM install ... Now, I'm ending up with many libraries that are not included in the package.json. Is there anyway to automatically add the…
zahma
  • 412
  • 4
  • 14
2
votes
1 answer

`npm install` is not installing local package's sub-dependencies

I have a package (package-a) that depends on another package (package-b) which is not published to npm but is on my file system. When I run npm install from package-a, package-b's dependencies are not installed. I have to navigate to package-b's…
Luke
  • 5,567
  • 4
  • 37
  • 66
2
votes
1 answer

Is it possible to run npm install without Python path present in Environmental variable

I am trying to install @angular-cli through npm. I am getting the below error. gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 I guess, python is not present in the path.…
Gowtham Raj J
  • 937
  • 9
  • 26