npm install -g jspm 失败

npm install -g jspm fails

我的 CI 构建突然失败并出现此错误。 知道是什么原因造成的吗?

npm install -g jspm
Unhandled rejection TypeError: base64 is not a function
    at Function.from (native)
    at Function.from (native)
    at bufFrom (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/ssri/index.js:337:31)
    at Hash.hexDigest (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/ssri/index.js:34:27)
    at contentPath (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/cacache/lib/content/path.js:20:31)
    at moveToDestination (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/cacache/lib/content/write.js:131:23)
    at /opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/cacache/lib/content/write.js:39:7
    at tryCatcher (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
    at /opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/bluebird/js/release/nodeback.js:42:21
    at /opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:99:16
    at /opt/circleci/nodejs/v4.2.6/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:43:10

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2017-05-31T06_19_59_153Z-debug.log

更新 nodejs

4.2.5 到 4.5.0 解决了问题