Sentry-cli: TypeError: log.newItem is not a function when installing

Created on 8 Oct 2017  路  2Comments  路  Source: getsentry/sentry-cli

Just tried to install this with NPM 5.3.0 globally and got this error. Installation failed.

2017-10-08T11_47_23_439Z-debug.log

Looking into log file, I see different error there, so I am attaching output from console as well.

D:\workspace>npm i -g sentry-cli
npm WARN deprecated [email protected]: Use uuid module instead
D:\users\DarkMaster\AppData\Roaming\npm\sentry-cli -> D:\users\DarkMaster\AppData\Roaming\npm\node_modules\sentry-cli\bin\sentry-cli

> [email protected] postinstall D:\users\DarkMaster\AppData\Roaming\npm\node_modules\sentry-cli
> node tasks/download.js

Start downloading jar at http://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/2.2.1/wiremock-standalone-2.2.1.jar
D:\users\DarkMaster\AppData\Roaming\npm\node_modules\sentry-cli\tasks\download.js:72
      var progress = log.newItem(url, length);
                         ^

TypeError: log.newItem is not a function
    at Request.<anonymous> (D:\users\DarkMaster\AppData\Roaming\npm\node_modules\sentry-cli\tasks\download.js:72:26)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at Request.onRequestResponse (D:\users\DarkMaster\AppData\Roaming\npm\node_modules\sentry-cli\node_modules\request\request.js:954:10)
    at emitOne (events.js:120:20)
    at ClientRequest.emit (events.js:210:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
    at Socket.socketOnData (_http_client.js:454:20)
    at emitOne (events.js:115:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node tasks/download.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\users\DarkMaster\AppData\Roaming\npm-cache\_logs\2017-10-08T11_47_23_439Z-debug.log

Most helpful comment

Just a note that the package name is "@sentry/cli"

All 2 comments

Hmm, nevermind, haven't realized it's actually published under different module name. That's kinda annoying that regular name was stolen by someone else :(

Just a note that the package name is "@sentry/cli"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexregier picture alexregier  路  4Comments

tbergq picture tbergq  路  3Comments

kkdev163 picture kkdev163  路  5Comments

liuaaaddxiaoer picture liuaaaddxiaoer  路  5Comments

olsh picture olsh  路  4Comments