Questions tagged [npm-shrinkwrap]

npm shrinkwrap" is a command on npm CLI which is used as a deployment mechanism for locking down dependency versions for publication.

npm shrinkwrap is a deployment mechanism used by that recursively saves the exact version of every dependency's dependencies to a npm-shrinkwrap.json file.

Reference:

60 questions
1
vote
0 answers

How to make sure npm install uses data from npm-shrinkwrap.json

In my javascript project I want to freeze the dependencies. For this I'm using npm-shrinkwrap https://docs.npmjs.com/cli/shrinkwrap I do the things that are written in the doc, and it works, but I can't find any evidence that the installation really…
bessarabov
  • 11,151
  • 10
  • 34
  • 59
1
vote
0 answers

NPM shrinkwrap use local module as dependency

I am currently using cropper and have jquery@latest in my package.json. However, cropper requires jquery as its own dependency which ends up with two versions of jquery being installed and used. I tried adding this to my…
Ozzy
  • 10,285
  • 26
  • 94
  • 138
1
vote
0 answers

Sharing packages across folder lines

Say I have the following package structure: Main - c @ 2.0.0 - b @ 1.0.0 - d @ 1.0.0 - b @ 1.0.0 Here, C's require(b) and D's require(b) will be different (unique instances, not ===). This can be solved by moving b up a level: Main - b @…
1
vote
0 answers

Keeping track of node_modules with npm shinkwrap and git

I'm on a node project with a launcher and several homemade plugins. Those plugins are marked as dependencies in the launcher package.json with the git repo adress. I recently tried npm shrinkwrap which perfectly give me the commit used for each of…
NorTicUs
  • 718
  • 1
  • 10
  • 27
0
votes
1 answer

npm-shrinkwrap.json: Could not install from "node_modules/react-navigation/react-native-tab-view@github:react-navigation/react-native-tab-view

I tried to run an npm install this morning on a React Native 0.53.3 project with "react-navigation": "1.5.11", and I got this error: npm ERR! code ENOLOCAL npm ERR! Could not install from…
Daniel
  • 14,004
  • 16
  • 96
  • 156
0
votes
1 answer

Where do libraries come from that are in npm-shrinkwrap but don't correspond to package.json

I have an npm-shrinkwrap file with express in it as a main dependency. However, I don't have express as a dependency in my package.json file. I don't see it used in my project anywhere. I don't see it as a dependency of something else in…
unflores
  • 1,764
  • 2
  • 15
  • 35
0
votes
1 answer

How to solve dependency conflict between js-data-angular and js-data-http

I'm currently working on a project, the project has 2 npm packages installed: js-data-http and js-data-angular. The problem is js-data-http requires js-data@>=3.0.0 and js-data-angular requires js-data@>=2.0.0 <3. I've looked through all versions…
ArthurG
  • 335
  • 2
  • 11
0
votes
1 answer

How is the shrinkwrap file generated?

When locking down node modules using shrinkwrap, how is the npm-shrinkwrap.json file generated? Does it recursively check node_modules folder and get it's info there? I'm asking because I did a npm install successfully behind a proxy which…
Vincent
  • 6,058
  • 15
  • 52
  • 94
0
votes
1 answer

can npm-shrinkwrap be installed while project is already started

I am currently half way through my node.js project and now, I want to install npm-shrinkwrap for dependency management. SO is it ok, if I do it now, or I should not do it right now.
user7510478
0
votes
0 answers

npm shrinkwrap (undesirably) falling back onto package.json

I'm using npm-shrinkwrap to lock down my project dependencies. However I'm running into one issue. It seems as though if you remove a dependency from the npm-shrinkwrap.json then node backs on to the original tree dependency resolution via…
Rhys
  • 1,439
  • 1
  • 11
  • 23
0
votes
1 answer

npm shrinkwrap contains paths to localhost

After running npm shrinkwrap I find that we have many references to localhost: egrep localhost npm-shrinkwrap.json "resolved": "http://localhost:4873/constants-browserify/-/constants-browserify-0.0.1.tgz" "resolved":…
jcalfee314
  • 4,642
  • 8
  • 43
  • 75
0
votes
1 answer

Shipping node.js project with custom dependencies

I fixed a couple of issues in nested dependencies of my node.js project (dependencies are managed by npm). These fixes are pending pull requests and thus aren't published. What's the best way to use them in my project? I know that I can do npm link…
Ivan Nikitin
  • 3,578
  • 27
  • 39
0
votes
1 answer

How to check which dependecy introduce which in npm?

package.json lists all direct dependencies of the app. While npm-shrinkwrap.json lists all dependencies in a quite flat format (seems it puts child's dependencies as root's dependencies whenever possible (?)) Looking at those dependencies, I would…
Pahlevi Fikri Auliya
  • 4,157
  • 8
  • 35
  • 71
0
votes
1 answer

Meteor NPM : Couldn't run `npm shrinkwrap`

I've looked high and low for how to fix this, couldn't figure it out. Running a React - Meteor app, meteorhacks:npm and browserify. Error: While building package npm-container: error: couldn't run `npm shrinkwrap`: Command failed: npm ERR! Error:…
Victor.dMdB
  • 999
  • 2
  • 11
  • 29
0
votes
1 answer

npm nested dependency not latest version

In my Node.js project, I have a dependency gulp which has a dependency vinyl-fs which has a dependency glob-watcher which has a dependency gaze. glob-watcher is version 0.0.6 has its gaze dependency set to ^0.5.1. According to this post the ^…
Jackson
  • 9,188
  • 6
  • 52
  • 77
1 2 3
4