Announcement

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

    install REAC error

    I need to reinstall the smartclient-pro REACT module.
    I'm running the following command:

    Code:
    npm install smartclient-pro --skins=none --username=aaa --password=bbb --branch=13.1
    But when I run it, I get an error.
    Code:
    npm error code 1
    npm error path ......\manage_react\node_modules\smartclient-pro
    npm error command failed
    npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node update.js false
    npm error SmartClient Pro requires download credentials. Checking.
    npm error Install SmartClient 13.1 runtime, build date latest, at .....\manage_react\isomorphic? [yes]: yes
    npm error Unable to find npm version [status null]: undefined
    npm error node:events:496
    npm error throw er; // Unhandled 'error' event
    npm error ^
    npm error
    npm error Error: unable to verify the first certificate
    npm error at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
    npm error at TLSSocket.emit (node:events:518:28)
    npm error at TLSSocket._finishInit (node:_tls_wrap:1078:8)
    npm error at ssl.onhandshakedone (node:_tls_wrap:864:12)
    npm error Emitted 'error' event on ClientRequest instance at:
    npm error at emitErrorEvent (node:_http_client:104:11)
    npm error at TLSSocket.socketErrorListener (node:_http_client:518:5)
    npm error at TLSSocket.emit (node:events:518:28)
    npm error at emitErrorNT (node:internal/streams/destroy:170:8)
    npm error at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    npm error at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    npm error code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
    npm error }
    npm error
    npm error Node.js v22.17.0
    npm --version
    10.9.2

    What am I doing wrong?

    #2
    I also checked the log file, and it contains this.
    Code:
    90 info run smartclient-pro@0.9.23 install { code: 1, signal: null }
    91 verbose stack Error: command failed
    91 verbose stack     at promiseSpawn (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
    91 verbose stack     at spawnWithShell (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
    91 verbose stack     at promiseSpawn (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
    91 verbose stack     at runScriptPkg (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:79:13)
    91 verbose stack     at runScript (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
    91 verbose stack     at C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:331:17
    91 verbose stack     at run (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
    91 verbose stack     at C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
    91 verbose stack     at new Promise (<anonymous>)
    91 verbose stack     at callLimit (C:\Users\test\AppData\Roaming\npm\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
    92 verbose pkgid smartclient-pro@0.9.23

    Comment


      #3
      And also... I already have the following modules installed.
      Code:
        "dependencies": {
          "react": "18.3.1",
          "react-dom": "18.3.1"
        },
        "devDependencies": {
          "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
          "@babel/preset-react": "^7.0.0",
          "@craco/craco": "^7.1.0",
          "concurrently": "^8.2.2",
          "react-scripts": "5.0.1",
          "typescript": "4.4.2"
        },

      Comment


        #4
        We had a transient error to go with SSL certs - we had updated ours, but intermediate certs had changed. Please retry and let us know if it's now working for you.

        Comment


          #5
          Thanks, everything is working.

          Comment

          Working...
          X