Update npm to version 7.7.5 if needed #77
Labels
enhancement
New feature or request
passed-dev-qa
Optional state. Use this when QAing other peoples fixes in another branch.ready to be merged to main
Problem this feature will solve
This will allow #76 to be fixed.
Background
At the time of wirting this. the Gitpod platform was using
npm
version6.14.11
Proposed Solution
Update
npm
if its current version is less than7.7.5
Just use a spinner and update the status to Done or Failed depending of success or failure.
Constraints and Assumptions
Laravel scripts use npm
Add an API to
utils.sh
that can compare two version numbers that use the pattern:<any # of digits>.<any # of digits>.<any # of digits>
Alternatives or Workarounds
Deal with hard to track down npm errors.
Additional context
It is debatable if
npm
should always be updated to the latest version. I decided to just pick a known stable version and leave it there.It definately makes it more futureproof to update to the latest version but also it could make it less stable.
The text was updated successfully, but these errors were encountered: