Skip to content
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

published package.json is different from source control #2438

Closed
vanjan opened this issue Oct 12, 2016 · 4 comments
Closed

published package.json is different from source control #2438

vanjan opened this issue Oct 12, 2016 · 4 comments

Comments

@vanjan
Copy link

vanjan commented Oct 12, 2016

http://registry.npmjs.com/pm2/2.0.18 contains one additional dependency, "gkt": "http://tgz.pm2.io/gkt-1.0.0.tgz, which prevents the package from being installed behind a firewall.

Oddly, the source does not contain gkt in dependencies, only optionalDependencies.

@vmarchaud
Copy link
Contributor

Sadly that's because we use npm shrinkwrap that doesnt make difference between optional and required dependency, that's an issue in npm here.
We are discussing a solution for this one, but you can use npm i pm2@latest --no-optional -g --no-shrinkwrap to install it, this should work.

@vanjan
Copy link
Author

vanjan commented Oct 12, 2016

How about publishing tgz into npm and using a regular version instead of url?

@vmarchaud
Copy link
Contributor

Cause we are using it for analytics purpose so we need to get pinged when someone download it.

@santiagon610
Copy link

For those of us using an automation platform that does not accept the --no-optional and --no-shrinkwrap, does a workaround exist? Can I point to a different NPM registry that won't break?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants