-
Notifications
You must be signed in to change notification settings - Fork 3k
missing peerDependencies prevent one from creating shrinkwrap in npm 3 #12909
Comments
Same problem here ! |
I will add a 1 to this. It should just be a warning. I need a workaround now.... |
is there any workaround, for this scenario |
The best would be to just install the missing dep. |
i have a package where a listed dependency is out of date, and we are using a more up-to-date version of that dependency. unfortunately shrinkwrap gives us trouble and wants us to list the more out-of-date version in our package.json. would love to be able to ignore the requirement somehow. |
I'm seeing this with a package that lists Angular 2 as a peer dependency when I use Angular 4. I've tried updating the dependency of the package to |
@iammikecohen https://semver.npmjs.com/ can help you to figure out semver ranges. |
@mgol Thank you, I should have been using |
We're closing this issue as it has gone seven days without activity and without being labeled. If we haven't even labeled in issue in seven days then we're unlikely to ever read it. If you are still experiencing the issue that led to you opening this or this is a feature request you're still interested in then we encourage you to open a new issue. If this was a support issue, you may be better served by joining package.communty and asking your question there. For more information about our new issue aging policies and why we've instituted them please see our blog post. |
@mgol How did you end up solving this? |
@Rovack I haven't. The only projects in which I used npm shrinkwrap are non-public company projects that have since migrated to Yarn. I haven't tested it recently but I assume the issue is still there. |
Issue is definitely still happening |
I'm going to bump this so the dumbass npm issue bot doesn't auto close it. Using npm 4.6.1 and I can't shrinkwrap since it doesn't ignore the peerDependency warning. It's isn't so that I'm missing the dependency even it's just the package I'm using has stupid strict peerDependency versions. |
I'm also having issues to shrinkwrap when peer dependencies of third parties doesn't get fullfilled. |
1 on the issue. |
Having the same issues with npm shrinkwrap |
same. npm ERR! Problems were encountered npm ERR! Please include the following file with any support request: |
1
|
Hi guys, I am facing the same problem as @garethtalty . |
1 |
3 similar comments
1 |
1 |
1 |
1 Exactly the same issue as @httpete |
1 |
8 similar comments
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
I thought npm 3 was supposed to solve all peerDependencies problems by always warning if they're missing but otherwise not breaking. Unfortunately, even with npm 3.9.3,
npm shrinkwrap
will still fail if a peerDependency is missing. For example, with the followingpackage.json
:Running
npm install
& thennpm shrinkwrap
results in an error:and no shrinkwrap is created.
I'd expect npm to only warn in such a case as well.
Is there any way to generate shrinkwrap with missing peerDependencies in npm 3?
The text was updated successfully, but these errors were encountered: