Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    npm smartclient-lgpl doesn't work without TTY terminal

    Hi,
    we are using smartclient-lgpl npm package ( https://www.npmjs.com/package/smartclient-lgpl ) to install smartclient in our project.
    But noticed that we cannot run npm install over TeamCity CI because of error:

    Code:
    process.stdout.cursorTo(0); [0K
       ^ [0K
    
      TypeError: process.stdout.cursorTo is not a function
    
       at IncomingMessage.<anonymous> (/usr/local/teamcity/buildAgent/work/a35dfe8a69c2b7de/frontend/node_modules/smartclient-lgpl/update.js:250:40)
       at IncomingMessage.emit (events.js:203:15)
       at addChunk (_stream_readable.js:288:12)
       at readableAddChunk (_stream_readable.js:269:11)
       at IncomingMessage.Readable.push (_stream_readable.js:224:10)
       at HTTPParser.parserOnBody (_http_common.js:124:22)
       at TLSSocket.socketOnData (_http_client.js:451:20)
       at TLSSocket.emit (events.js:198:13)
       at addChunk (_stream_readable.js:288:12)
       at readableAddChunk (_stream_readable.js:269:11)
       at TLSSocket.Readable.push (_stream_readable.js:224:10)
       at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    Maybe do you know how can we resolve this issue?
    Maybe there are some ENV variables or etc. to disable call to "cursorTo"?

    #2
    Related post about similar issue: https://stackoverflow.com/questions/...orto-functions

    Comment


      #3
      We don't see that specific issue when adding smartclient-lgpl to a new project (though we see a different issue on Windows that will be addressed). Can you provide:
      • What OS you're using
      • Your npm version
      • Your node version

      Comment


        #4
        Hi,
        It's virtualized build task on docker, here is versions:

        OS: Linux docker-desktop 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
        NPM: 6.14.4
        Node version: v10.20.1

        Maybe you can simulate npm install without terminal using "nohup npm install" command?

        Comment


          #5
          We've uploaded new versions to npm that limit the use of cursorTo(). You will need to pass the "--yes" option to avoid prompts popping up.

          Comment

          Working...
          X