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

Listed dependencies in package-lock.json file have mixed (sha1 / sha512) integrity checksum.

I understand npm have changed the integrity checksum from sha1 to sha512, But I am confused why few of the dependencies in package-lock json file still show sha1 integrity checksum. Adding below few lines from the package-lock file, which has sha1…
Deepika
  • 41
  • 5
2
votes
1 answer

monkey patching at the npm package level?

I'd like to extend the npm package "truffle", but currently in version 4 (and version 5), "truffle" doesn't have a plugin extension mechanism. So the broad question is how to "monkey patch" that. One possiblity would be to list the truffle package…
rocky
  • 7,226
  • 3
  • 33
  • 74
2
votes
0 answers

running npm install on samba share

I'm attempting to run npm install on a mounted samba share (FreeNAS). The first time I was able to install webpack but all subsequent attempts to install any package fail with EACCES: permission denied, chown errors on package.json files in the…
Elfalem
  • 347
  • 3
  • 17
2
votes
1 answer

NPM, package.json and supporting multiple major version of a third party library, testing each version?

{ "name": "my-library", "devDependencies": { "3d-party": "^4.0.0" } } Imagine that my-library should support 3.x and 4.x version of 3d-party package. my-library is well tested. Is there something that I can run locally, like Travis CI,…
gremo
  • 47,186
  • 75
  • 257
  • 421
2
votes
1 answer

package-lock.json contains non-exact versions

According to package-lock.json's documentation It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates. I'm looking at a…
papiro
  • 2,158
  • 1
  • 20
  • 29
2
votes
1 answer

Getting error in updating npm in Angular 6 based project

I wanted to update new version of npm 6.4.0 from npm 6.1.0 , using cli command npm install -g npm but I got error while updating npm ERR! path /usr/local/lib/node_modules/npm/node_modules/ansi-regex npm ERR! code EACCES npm ERR! errno -13 npm…
user10124556
2
votes
1 answer

Laravel Mix npm run development error

I try to use npm run development but i become the follow error. Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.entry should be one of these: object { :…
MG112
  • 55
  • 1
  • 8
2
votes
2 answers

Error while executing the "npm install" command in ubuntu 16.04 LTS using virtualbox 5.2.8 on windows 10(64 bit)

I have been trying to install and run my first hyperledger fabric application (http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html) but have been encountering the following issue everytime I run the "npm install" command. Please…
2
votes
1 answer

npm install error: libpng-dev

OS: centos-release-6-10.el6.centos.12.3.x86_64 Node version: v8.11.1 NPM version: 5.6.0 package.json { "private": true, "scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development…
Dipendra Gurung
  • 5,720
  • 11
  • 39
  • 62
2
votes
1 answer

NPM install shows error

I have tried to uninstall and reinstall angular cli, for which i have used, sudo npm uninstall -g @angular/cli sudo npm install -g @angular/cli Whenever i give npm install it is showing the error, npm ERR! Unexpected token < in JSON at position 1…
Maniraj Murugan
  • 8,868
  • 20
  • 67
  • 116
2
votes
0 answers

npm install --production and bcrypt issue for npm 6.2.0

I am trying to perform “npm install —production” on a debian ec2 machine on aws. The server is currently running node version 10.8.0 and nom version 6.2.0. I am not sure if this is a version issue/conflict? It seems as if it happens only for the…
user1790300
  • 2,143
  • 10
  • 54
  • 123
2
votes
1 answer

xml2json install Error Can't find Python executable you can set the PYTHON env variable

I have some problems while installing xml2json with NPM. My Development Environment is like this. OS : Windows 10 Pro 64bit IDE : Visual Studio Code Node Version : 8.10.0 Nowadays I do node projects. But I cannot install xml2json. In npmjs.com It…
writingdeveloper
  • 984
  • 2
  • 21
  • 46
2
votes
1 answer

How to update version of v8 (Javascript) is installed with my NodeJS?

Need to upgrade only Javascript engine version only to 6.x from 3.x. Is it possible without upgrading nodejs version? Current node version is 0.12.x
2
votes
2 answers

grpc error and npm error while starting blockchain app

I have installed all the prerequisites and i am getting following error while registering node admin after npm install. If anyone can please help me out with the error:- hitesh@hitesh-VirtualBox:~/medication-blockchain/drug-app$ node…
2
votes
3 answers

Due to a recent security incident, all user tokens have been invalidated

So I uninstalled the newer version of node that I had on my machine(v8.11.3) and then installed the earlier version v6.11.0 (because my project needs earlier version to do a grunt build). Now when I try to do npm install to restore the packages for…