Skip to content

Make CircleCI use node@8 and npm @5 #1798

@etpinard

Description

@etpinard
Contributor

Both set to become LTS, now available on CircleCI - see https://circleci.com/blog/npm5-and-nodejs8/

Activity

self-assigned this
on Jun 19, 2017
etpinard

etpinard commented on Jun 26, 2017

@etpinard
ContributorAuthor

Actually, node@8 (with npm@5) isn't available on CircleCI's preinstalled images yet. See

https://circleci.com/docs/1.0/build-image-trusty/#nodejs

for most up-to-date list.

etpinard

etpinard commented on Jul 11, 2017

@etpinard
ContributorAuthor

While doing this, it might be worth migrating to CircleCI 2.0:

https://circleci.com/docs/2.0/migrating-from-1-2/

etpinard

etpinard commented on Aug 29, 2017

@etpinard
ContributorAuthor
bpostlethwaite

bpostlethwaite commented on Aug 29, 2017

@bpostlethwaite
Member

fyi node-usb/node-usb#193 (comment)
and I'm seeing these errors building plotly.js

 npm install
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/mapbox/mapbox-gl-shaders.git /root/.npm/_cacache/tmp/git-clone-d8de79a2
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-d8de79a2': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-08-29T20_24_01_459Z-debug.log
root@stage-streambed-fl6p:/var/www/streambed# rm -r /root/.npm
root@stage-streambed-fl6p:/var/www/streambed# npm install
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/mapbox/mapbox-gl-shaders.git /root/.npm/_cacache/tmp/git-clone-146d42f8
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-146d42f8': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-08-29T20_24_15_797Z-debug.log
bpostlethwaite

bpostlethwaite commented on Aug 29, 2017

@bpostlethwaite
Member

sorry npm issue link here: npm/npm#16898

etpinard

etpinard commented on Aug 29, 2017

@etpinard
ContributorAuthor

#1745 (comment)

Bumping to npm@5.0.3 should solve this.

bpostlethwaite

bpostlethwaite commented on Aug 29, 2017

@bpostlethwaite
Member
root@stage-streambed-fl6p:/var/www/streambed# npm --version
5.3.0
bpostlethwaite

bpostlethwaite commented on Aug 29, 2017

@bpostlethwaite
Member

tried obliterating /root/.npm but having the same error. Will post here once I find some workaround

etpinard

etpinard commented on Sep 22, 2017

@etpinard
ContributorAuthor

Some preliminary work on branch:

https://github.com/plotly/plotly.js/compare/circle2

Docker handlers have change significantly from Circle 1 to 2.0, so I think I'll wait for #1972 to be completed before giving this another shot.

etpinard

etpinard commented on Nov 1, 2017

@etpinard
ContributorAuthor

Ping. Node 8.x is now LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @bpostlethwaite@etpinard

    Issue actions

      Make CircleCI use node@8 and npm @5 · Issue #1798 · plotly/plotly.js