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

NPM version 5 removes dependencies #9

Closed
geraintwhite opened this issue Sep 21, 2017 · 1 comment
Closed

NPM version 5 removes dependencies #9

geraintwhite opened this issue Sep 21, 2017 · 1 comment

Comments

@geraintwhite
Copy link

In npm 5 that comes bundled with node 8 (I have npm v5.4.1 and node v8.4.0), dependencies are removed when npm install is run:

geraintwhite@Geraint-Mac ~/repos/node/github-listener (master +=) $ npm install
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: Please update conventional-changelog to >1.0.0. If you are running the cli, use conventional-changelog-cli
added 34 packages, removed 109 packages and updated 7 packages in 7.786s

The issue this causes with cracks is that the dependencies object is removed from the package.json in order to just install devDependencies, resulting in npm 5 actually removing the non devDependencies from node_modules. Perhaps a better solution is to run npm install --only=dev to just install the devDependencies?

@pvdlg
Copy link
Member

pvdlg commented Oct 1, 2018

Close in favor of #12

@pvdlg pvdlg closed this as completed Oct 1, 2018
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

2 participants