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 5.x removes files from node_modules #3

Open
cxbrooks opened this issue Oct 6, 2017 · 2 comments
Open

npm 5.x removes files from node_modules #3

cxbrooks opened this issue Oct 6, 2017 · 2 comments

Comments

@cxbrooks
Copy link
Member

cxbrooks commented Oct 6, 2017

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#3
From: @cxbrooks
Reported version: unspecified
CC: accessors-devel@terraswarm.org

@cxbrooks
Copy link
Member Author

cxbrooks commented Oct 6, 2017

Sadly, npm 5.x that is shipped with Node 8.x removes files from the node_modules/ directory, even though that version of npm did not create those files.

In the near term, we are shipping node 7.10.1 with the CapeCode installer.

Details are at https://wiki.eecs.berkeley.edu/accessors/Notes/Npm5

@cxbrooks
Copy link
Member Author

I think the correct solution would be to move everything in the node_modules directory in to packages that are uploaded to npm. Unfortunately, this would mean that the accessors git repo would need to install the packages using npm, which would mean that there would be two copies, one that is in the repo, the other that is installed using npm. Currently, we just populate the node_modules directory with the files in the repo, which makes everything easy.

How do I prevent npm install from removing packages? suggests using npm link

This is handy for installing your own stuff, so that you can work on it and test it iteratively without having to continually rebuild.

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

1 participant