Sonar-scanner-vsts TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array,

vsts

(Nikita) #1

Try build VSTS extension
Get error:

cd e:\GIT\sonar-scanner-vsts\extensions\sonarqube\tasks\publish\new && npm install && cd e:\GIT\sonar-scanner-vsts
npm WARN publish@4.0.0 No repository field.

up to date in 1.203s
[+] no known vulnerabilities found [10 packages audited]

buffer.js:207
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
    at Function.from (buffer.js:207:11)
    at new Buffer (buffer.js:182:17)
    at Request.downloadHandler [as _callback] (e:\GIT\sonar-scanner-vsts\node_modules\gulp-download\index.js:37:57)
    at self.callback (e:\GIT\sonar-scanner-vsts\node_modules\gulp-download\node_modules\request\request.js:186:22)
    at Request.emit (events.js:182:13)
    at Request.onRequestError (e:\GIT\sonar-scanner-vsts\node_modules\gulp-download\node_modules\request\request.js:878:8)
    at ClientRequest.emit (events.js:182:13)
    at TLSSocket.socketErrorListener (_http_client.js:371:9)
    at TLSSocket.emit (events.js:182:13)
    at emitErrorNT (internal/streams/destroy.js:92:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sonar-scanner-vsts@0.0.1-SNAPSHOT build: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sonar-scanner-vsts@0.0.1-SNAPSHOT build 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!     C:\Users\***\AppData\Roaming\npm-cache\_logs\2018-07-03T07_29_33_866Z-debug.log

(G Ann Campbell) #2

Hi,

In combining all your commands in one line, I think you’ve lost the granularity. It doesn’t appear to me that your error comes from your analysis attempt, but from the npm command before it.

Ann


(Nikita) #3

It is my local issue.
Sorry