Switching node versions with HomeBrew

I accidentally upgraded npm and now I can’t compile bokeh from source.

Does anyone know how to link to an older version of node? I was able to install [email protected], but I’m not sure how to link to it?

Thanks in advance.

Dan

nightowl:bokeh-master nightowl$ sudo python setup.py install

Password:

Bokeh includes a JavaScript library (BokehJS) that has its own

build process. How would you like to handle BokehJS:

  1. build and install fresh BokehJS

  2. install last built BokehJS from bokeh/bokehjs/build

Choice? 1

Building BokehJS… Failed.

ERROR: ‘gulp build’ returned the following

---- on stdout:

node >=8.8 <9.0 is required. Current version is v10.0.0.

---- on stderr:

nightowl:bokeh-master nightowl$ brew search node

==> Searching local taps…

node :heavy_check_mark: [email protected] :heavy_check_mark: leafnode libbitcoin-node llnode node-build [email protected] [email protected] nodebrew nodeenv nodenv

==> Searching taps on GitHub…

caskroom/cask/node-profiler

==> Searching blacklisted, migrated and deleted formulae…

nightowl:bokeh-master nightowl$ brew list --versions

gdbm 1.14.1_1

icu4c 61.1

node 10.0.0

[email protected] 8.11.1

openssl 1.0.2o_1

[email protected] 2.7.14_3

readline 7.0.3_1

sqlite 3.23.1

nightowl:bokeh-master nightowl$ brew switch node 8.11.1

Error: node does not have a version “8.11.1” in the Cellar.

node installed versions: 10.0.0

nightowl:bokeh-master nightowl$ brew switch node [email protected]

Error: node does not have a version “[email protected]” in the Cellar.

node installed versions: 10.0.0

It’s npm that came out with a new version yesterday. You should be able to downgrade npm we with npm but not that a PRc was merged yesterday that widened the acceptable versions to include the new npm.

···

On Apr 25, 2018, at 07:29, [email protected] wrote:

I accidentally upgraded npm and now I can’t compile bokeh from source.

Does anyone know how to link to an older version of node? I was able to install [email protected], but I’m not sure how to link to it?

Thanks in advance.

Dan

nightowl:bokeh-master nightowl$ sudo python setup.py install

Password:

Bokeh includes a JavaScript library (BokehJS) that has its own

build process. How would you like to handle BokehJS:

  1. build and install fresh BokehJS
  1. install last built BokehJS from bokeh/bokehjs/build

Choice? 1

Building BokehJS… Failed.

ERROR: ‘gulp build’ returned the following

---- on stdout:

node >=8.8 <9.0 is required. Current version is v10.0.0.

---- on stderr:

nightowl:bokeh-master nightowl$ brew search node

==> Searching local taps…

node :heavy_check_mark: [email protected] :heavy_check_mark: leafnode libbitcoin-node llnode node-build [email protected] [email protected] nodebrew nodeenv nodenv

==> Searching taps on GitHub…

caskroom/cask/node-profiler

==> Searching blacklisted, migrated and deleted formulae…

nightowl:bokeh-master nightowl$ brew list --versions

gdbm 1.14.1_1

icu4c 61.1

node 10.0.0

[email protected] 8.11.1

openssl 1.0.2o_1

[email protected] 2.7.14_3

readline 7.0.3_1

sqlite 3.23.1

nightowl:bokeh-master nightowl$ brew switch node 8.11.1

Error: node does not have a version “8.11.1” in the Cellar.

node installed versions: 10.0.0

nightowl:bokeh-master nightowl$ brew switch node [email protected]

Error: node does not have a version “[email protected]” in the Cellar.

node installed versions: 10.0.0

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9746b939-9606-4b74-8e95-fc2874d5556b%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

HI,

···

On Wed, Apr 25, 2018 at 4:36 PM, Bryan Van de ven [email protected] wrote:

It’s npm that came out with a new version yesterday. You should be able to downgrade npm we with npm but not that a PRc was merged yesterday that widened the acceptable versions to include the new npm.

there was a first release of nodejs in 10.x line (non LTS) yesterday, so it may be a problem to some users.

Mateusz

On Apr 25, 2018, at 07:29, [email protected] wrote:

I accidentally upgraded npm and now I can’t compile bokeh from source.

Does anyone know how to link to an older version of node? I was able to install [email protected], but I’m not sure how to link to it?

Thanks in advance.

Dan

nightowl:bokeh-master nightowl$ sudo python setup.py install

Password:

Bokeh includes a JavaScript library (BokehJS) that has its own

build process. How would you like to handle BokehJS:

  1. build and install fresh BokehJS
  1. install last built BokehJS from bokeh/bokehjs/build

Choice? 1

Building BokehJS… Failed.

ERROR: ‘gulp build’ returned the following

---- on stdout:

node >=8.8 <9.0 is required. Current version is v10.0.0.

---- on stderr:

nightowl:bokeh-master nightowl$ brew search node

==> Searching local taps…

node :heavy_check_mark: [email protected] :heavy_check_mark: leafnode libbitcoin-node llnode node-build [email protected] [email protected] nodebrew nodeenv nodenv

==> Searching taps on GitHub…

caskroom/cask/node-profiler

==> Searching blacklisted, migrated and deleted formulae…

nightowl:bokeh-master nightowl$ brew list --versions

gdbm 1.14.1_1

icu4c 61.1

node 10.0.0

[email protected] 8.11.1

openssl 1.0.2o_1

[email protected] 2.7.14_3

readline 7.0.3_1

sqlite 3.23.1

nightowl:bokeh-master nightowl$ brew switch node 8.11.1

Error: node does not have a version “8.11.1” in the Cellar.

node installed versions: 10.0.0

nightowl:bokeh-master nightowl$ brew switch node [email protected]

Error: node does not have a version “[email protected]” in the Cellar.

node installed versions: 10.0.0

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9746b939-9606-4b74-8e95-fc2874d5556b%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5B1E3B18-EB72-41E8-9CA5-061AE34FF606%40anaconda.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks guys. I was able to work around this based in the link below, with a small tweak.

I had to add --overwrite and --force flags in brew link [email protected]

···

To unlink from current version

$ brew unlink node

Install any version e.g. 8

$ brew install [email protected]**8**

To link installed version

$ brew link [email protected]**8 --overwrite --force**

On Wednesday, April 25, 2018 at 11:03:47 AM UTC-4, mateusz.paprocki wrote:

HI,

On Wed, Apr 25, 2018 at 4:36 PM, Bryan Van de ven [email protected] wrote:

It’s npm that came out with a new version yesterday. You should be able to downgrade npm we with npm but not that a PRc was merged yesterday that widened the acceptable versions to include the new npm.

there was a first release of nodejs in 10.x line (non LTS) yesterday, so it may be a problem to some users.

Mateusz

On Apr 25, 2018, at 07:29, [email protected] wrote:

I accidentally upgraded npm and now I can’t compile bokeh from source.

Does anyone know how to link to an older version of node? I was able to install [email protected], but I’m not sure how to link to it?

Thanks in advance.

Dan

nightowl:bokeh-master nightowl$ sudo python setup.py install

Password:

Bokeh includes a JavaScript library (BokehJS) that has its own

build process. How would you like to handle BokehJS:

  1. build and install fresh BokehJS
  1. install last built BokehJS from bokeh/bokehjs/build

Choice? 1

Building BokehJS… Failed.

ERROR: ‘gulp build’ returned the following

---- on stdout:

node >=8.8 <9.0 is required. Current version is v10.0.0.

---- on stderr:

nightowl:bokeh-master nightowl$ brew search node

==> Searching local taps…

node :heavy_check_mark: [email protected] :heavy_check_mark: leafnode libbitcoin-node llnode node-build [email protected] [email protected] nodebrew nodeenv nodenv

==> Searching taps on GitHub…

caskroom/cask/node-profiler

==> Searching blacklisted, migrated and deleted formulae…

nightowl:bokeh-master nightowl$ brew list --versions

gdbm 1.14.1_1

icu4c 61.1

node 10.0.0

[email protected] 8.11.1

openssl 1.0.2o_1

[email protected] 2.7.14_3

readline 7.0.3_1

sqlite 3.23.1

nightowl:bokeh-master nightowl$ brew switch node 8.11.1

Error: node does not have a version “8.11.1” in the Cellar.

node installed versions: 10.0.0

nightowl:bokeh-master nightowl$ brew switch node [email protected]

Error: node does not have a version “[email protected]” in the Cellar.

node installed versions: 10.0.0

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9746b939-9606-4b74-8e95-fc2874d5556b%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5B1E3B18-EB72-41E8-9CA5-061AE34FF606%40anaconda.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.