-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Rimraf npm #6048
Rimraf npm #6048
Conversation
Doing |
@jbergstroem I may or may not be implementing things in a naive way to get the ball rolling 😄 |
Also worth mentioning that if we can hit all the edge cases (all installers) we should be able to close #3606 |
I turned over in my grave and I'm not dead yet. |
@thealphanerd This isn't the correct fix though. I've never had problems via the Makefile. The installers need to be doing this. |
@Fishrock123 I've had this problem turn up with the makefile as well when moving between LTS releases. I'm part way through a fix for the osx installer |
@thealphanerd: perhaps look at implementing this in The question whether deleting the folder or not still remains. Are the edge cases causing installer issues known? |
7da4fd4
to
c7066fb
Compare
OSX 10.11, upgrading from v5.10 to v6.0 using official OSX Installer. This problem still exists.
|
@@ -78,6 +78,7 @@ config.gypi: configure | |||
fi | |||
|
|||
install: all | |||
-rm -rf '$PREFIX'/lib/node_modules/npm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't do what you think it does, the path gets evaluated to 'REFIX'/lib/node_modules/npm
. I don't want to sound harsh but did you actually test it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbqh I was whipping this up while doing a handful of other things. I assumed the rimraf implementation would not be accepted and wanted some suggestions on next steps. I've updated with ${PREFIX)
so that it actually works, and will explore doing this in the python script
I'd be more inclined to LGTM this if it was a pre- or post-install pass in |
676c842
to
11edcb0
Compare
Different versions of npm potentially have different trees. We should be cleaning the version of npm on every install. This implements the removal naively by calling `rm -rf $PREFIX/lib/node_modules/npm` in the `make install` command. This does not implement similar functions for the windows installer, nor does it implement the removal in the double click installers. This can be implemented as part of this PR or as part of another.
I'm going to close this for now, I'll revisit later |
build: remove npm on make install
Different versions of npm potentially have different trees. We should
be cleaning the version of npm on every install.
This implements the removal naively by calling
rm -rf $PREFIX/lib/node_modules/npm
in themake install
command.This does not implement similar functions for the windows installer,
nor does it implement the removal in the double click installers.
This can be implemented as part of this PR or as part of another.