tobiipro / support-firecloud

Software and configuration that support TobiiPro's Cloud Services development.
Apache License 2.0
4 stars 1 forks source link

node@15 with npm@7 is full of bugs. lock to node LTS (currently 14) #194

Closed andreineculau closed 4 years ago

andreineculau commented 4 years ago

Node v15 was recently released and homebrew also bumped the node formula. Node is and has been stable, but it does come with a built-in component that tends to be quite unstable: npm.

npm v7 has currently 64 open issues, among them a bug around global packages, meaning that npm install -g json will not install the json executable in the correct folder https://travis-ci.com/github/tobiipro/support-firecloud/jobs/406928192

Screenshot 2020-10-26 at 15 36 47

Since it is not possible to downgrade npm (i.e. npm i -g npm@6 doesn't work), this PR fixes the situation by locking node to v14 (v14.14.0 to be exact) which is the current LTS version.

andreineculau commented 4 years ago

brew install node@14 should now be available on macos as per PR https://github.com/Homebrew/homebrew-core/pull/63410 it hasn't landed yet in linuxbrew though. when it does, we should remove the priv/node.rb formula call brew install node@14