[
https://issues.apache.org/jira/browse/THRIFT-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062191#comment-16062191
]
Eric Conner commented on THRIFT-4213:
-------------------------------------
The above PR appears to fix the npm issue. I upgraded nodejs in the Dockerfile
to the LTS 6.x release. The version in the apt-get repository is pretty old --
from 2014 -- and seems to be incompatible with the latest npm. I don't know
enough about Javascript to really understand why it is incompatible but it
probably has something to do with ES2015. In any case, newer versions of
nodejs include npm so it does not need to be separately installed.
The other thing I'm unsure of is the impact of changing this version and
whether it is important to use the apt-get version of nodejs.
> Travis build fails at curl -sSL https://www.npmjs.com/install.sh | sh
> ---------------------------------------------------------------------
>
> Key: THRIFT-4213
> URL: https://issues.apache.org/jira/browse/THRIFT-4213
> Project: Thrift
> Issue Type: Bug
> Components: Build Process
> Reporter: Jens Geyer
> Priority: Blocker
>
> {code}
> Step 24 : RUN curl -sSL https://www.npmjs.com/install.sh | sh
> ---> Running in 0edf1ca023e7
> tar=/bin/tar
> version:
> tar (GNU tar) 1.27.1
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Written by John Gilmore and Jay Fenlason.
> install npm@latest
> fetching: https://registry.npmjs.org/npm/-/npm-4.6.1.tgz
> npm ERR! Object function (err) {
> npm ERR! if (err) return cb(err)
> npm ERR! fs.fsync(fd, function (err) {
> npm ERR! if (err) return cb(err)
> npm ERR! fs.close(fd, cb)
> npm ERR! })
> npm ERR! } has no method 'toLowerCase'
> It failed
> The command '/bin/sh -c curl -sSL https://www.npmjs.com/install.sh | sh'
> returned a non-zero code: 1
> /home/travis/.travis/job_stages: line 155: 1053 Terminated
> travis_jigger $! $timeout $cmd
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)