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

npm install gets permission denied for a module

Getting permission denied error for a local repo, which I can clone successfully, however getting error for npm install:npm install npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t…
2
votes
6 answers

Angular - CodeAnywhere - You seem to not be depending on "@angular/core". This is an error

Hey im trying to install Angular Cli but i keep getting failed package install. Then i try to start the server and it says You seem to not be depending on "@angular/core". This is an error.
whawhawario
  • 21
  • 1
  • 2
2
votes
2 answers

Cannot install TypeScript globally

I've been using this node command: npm install -g typescript However, the downloaded package always goes to C:\Program Files\Git\usr\local\tsserver. When tsc -v is called outside Git directory, it prints the following message: 'tsc' is not…
Emmanuel Gabion
  • 425
  • 1
  • 9
  • 20
2
votes
2 answers

How do I "install the modules with `npm install` and run `node index."

I stumbled upon a very desirable tool with some quite esoteric instructions. This is what I would like to make use of: https://github.com/MehediH/Bulksplash?ref=producthunt BulkSplash Folder Contents I apologise but I must ask for an absolute…
2
votes
1 answer

Error logs after package-lock.json is generated

After installing babel-cli package locally on a project.. I started to get error logs when I type npm list --depth 0 in the command line. It's very annoying.. but I'm not sure if it's casing any other problems. I've tried to install babel-cli and…
YahiaRefaiea
  • 172
  • 1
  • 12
2
votes
1 answer

No fetch option for CordovaCLI 8.0.0

I can not find any document for Cordova CLI 8.0.0 that support --nofetch option. Here is the link to cordova's docs page mentioning the --nofetch option in CordovaCLI 7.0.0. 
Every time I run cordova platform command with 8.0.0 changes node_modules…
Toan Tran
  • 1,937
  • 1
  • 24
  • 37
2
votes
0 answers

Best practice for npm modules

I have a project that requires some shared code, we basically have 2 types of client APIs and some similar functionality, call them client1 and client2. We have a project that has 4 directories, one for each client and library directories for…
TheHebrewHammer
  • 3,018
  • 3
  • 28
  • 45
2
votes
1 answer

npm install failing missing dezalgo

npm install cordova-android@5.2.2 fails with below npm ERR! path /Users/Barry/Desktop/demo/node_modules/npm/node_modules/dezalgo npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename npm ERR! enoent ENOENT: no such file or directory,…
TheBearF8
  • 375
  • 1
  • 3
  • 14
2
votes
0 answers

Npm install gives 'invalid' error on latest react

I'm trying to update my react version by (copy paste from react website): npm install --save react@^16.2.0 react-dom@^16.2.0 and I get the errors: +-- react@16.2.0 invalid `-- react-dom@16.2.0 invalid They do appear into my package.json normally…
Steve Waters
  • 3,348
  • 9
  • 54
  • 94
2
votes
1 answer

require-from-string@^1.1.0 Error installing any package with NPM

Any package (even nodejs) results in this. I have so far taken action : Uninstalled all my dependencies Cleared my cache Reinstalled NPM / AngularCli Running any NPM command will unfortunately result in this command, even the uninstall…
Maartenw
  • 595
  • 1
  • 5
  • 19
2
votes
1 answer

npm install peerDependencies for newer version

I am new for nodejs. I have package.json like this { ... "peerDependencies": { "react": "16.0.0" }, "dependencies": { "some-lib-that-use-old-react": "git+ssh://git@bitbucket.org/xx/somelib.git", "other-lib-that-use-old-react":…
2
votes
0 answers

Can't npm install googleapis

node version: 8.9.3 npm version: 5.5.1 When I try to execute npm install googleapis I'm getting this result: npm WARN eslint-config-standard@6.2.1 requires a peer of eslint@>=3.8.1 but none is installed. You must install peer dependencies…
2
votes
2 answers

Unable to install latest version of a package that is in the NPM repo

I'm having issues with a NPM and couple of dependencies where the latest version of a package that NPM finds is different from the latest version that is actually present in the NPM repo. I'm trying to install a package that has other dependencies,…
Blake
  • 259
  • 5
  • 16
2
votes
1 answer

How to import PDF.JS into Typescript using npm

I installed the PDF.JS npm packages and import the same in typescript file, but it does not work as expected. I used the below code to import the PDF.JS into typescript. import { PDFJSStatic } from 'pdfjs-dist'; const PDFJS: PDFJSStatic =…
Parthi
  • 361
  • 6
  • 21
2
votes
2 answers

npm install gives errors

I can't succeed with npm install packages after $npm install, it shows this output: > canvas@1.6.7 install /home/samuel/testes/Avanade Angular Academy by Gama/gama-avanade-tryout01/node_modules/canvas > node-gyp rebuild ./util/has_lib.sh: 31:…
samu101108
  • 675
  • 7
  • 23