Skip npm install if we detect that npm is already installed. - #4946
Conversation
|
Last I checked we never used to install npm in this rake task, let me trace this backwards to make sure I understand what's going on and why this install script has drifted in this fashion, and to make sure this change is what we actually want. Long-term I really hope to stop continuing to spend so much of our energy massaging this Rakefile across all of our various local-workstation edge-cases, and instead focus efforts on moving to a fully Chef-managed configuration. But that won't happen for a while. |
|
It looks like the The
Just a thought, would love to hear other suggestions. |
|
More brainstorming/prototyping, I sketched out this replacement |
|
@islemaster shall we just get this one-line fix merged in for now, putting off any more complicated changes for later? I think the current commit is fine as a workaround for now (at least until we need to update npm in the future, which won't happen very often anyway), and is definitely better than leaving as-is for any longer. |
|
@wjordan I don't want this to introduce issues; it sounds like the root cause here is way, way deeper than what I'm addressing. If you're okay with this one-liner I'll happily merge it and stop messing with my local Rakefile. |
…y-installed Skip `npm install` if we detect that npm is already installed.
1a5cbc7 Merge pull request #5557 from code-dot-org/revert-revert-proxy (Bjvanminnen) fbcc9a0 Merge pull request #4946 from code-dot-org/skip-npm-install-if-already-installed (Brad Buchanan) 3de1b51 Comment nvm workaround [ci skip] (Brad Buchanan) 703c04c Merge pull request #5462 from code-dot-org/generalize-mobile-audio-unlock (Brad Buchanan) 2d5cd5e Automatically built. (Continuous Integration) d367880 Merge pull request #5552 from code-dot-org/delete_first_screen (Mehal Shah)
@wjordan Does this seem like an appropriate/safe change to our
rake installtask? Right now this step always breaks for me because I'm using nvm to manage my node/npm versions. I've been manually disabling this step when I want to install, but wondered if there's any reason not do skip it automatically in my case?