New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mountebank is not shrinkwrap compatible #120
Comments
Thanks for reporting. Do you have a project I can clone to test? I'm unable to reproduce with grunt-mountebank (https://github.com/bbyars/grunt-mountebank). The shrinkwrap file, including mountebank, is here: |
I can reproduce it with this example: https://github.com/kutzi/mountebank-shrinkwrap |
This is actually a npm issue, not a bug in mountebank. Mountebank is published using npm v3, which modifies the behavior of where npm dependencies are installed. npm v2 does not expect this, and will throw errors because of it when trying to shrinkwrap. Upgrading to npm v3 solves this issue. If for some reason you are stuck on npm v2, there is an only moderately inconvenient workaround. Add all of mountebanks top level dependencies to your own package.json. Then, between For reference, upgrading to npm v3 only solved the issue for me if my version of mountebank is exactly |
Adam - thanks for the explanation. I'll add some docs on the next release On Thu, May 5, 2016 at 11:20 AM, Adam Kalman notifications@github.com
|
I just tried creating an NPM shrinkwrap file using npm 3 and I had this issue as well. Similar errors about extraneous packages.
|
When I add mountebank as dev dependency to my project, I cannot shrinkwrap the dependencies anymore.
i.e.
The text was updated successfully, but these errors were encountered: