You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, our project is using specific framework and this framework is using verdaccio.
This framework also contains verdaccio's storage folder to provide builtin packages for offline usage.
The problem is in the package.json files of builtin packages, every dist.tarball url is https://artifacts-in.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/... which is private repository for the framework so we can't connect to the url.
When I run npm install [email protected], I get this error.
The tarball file doesn't exist but existing in the package.json file.
express:router dispatching GET /string-width/-/string-width-5.1.2.tgz +19s
express:router query : /string-width/-/string-width-5.1.2.tgz +1ms
express:router expressInit : /string-width/-/string-width-5.1.2.tgz +1ms
express:router corsMiddleware : /string-width/-/string-width-5.1.2.tgz +0ms
express:router log : /string-width/-/string-width-5.1.2.tgz +1ms
verdaccio:logger http (25) was changed to http (25) +19s
express:router errorReportingMiddleware : /string-width/-/string-width-5.1.2.tgz +2ms
verdaccio:middleware:error error report middleware start +0ms
verdaccio:middleware:error error report middleware end (skip next layer) next() +0ms
express:router <anonymous> : /string-width/-/string-width-5.1.2.tgz +1ms
express:router compression : /string-width/-/string-width-5.1.2.tgz +0ms
express:router router : /string-width/-/string-width-5.1.2.tgz +1ms
express:router dispatching GET /string-width/-/string-width-5.1.2.tgz +0ms
express:router <anonymous> : /string-width/-/string-width-5.1.2.tgz +0ms
express:router jsonParser : /string-width/-/string-width-5.1.2.tgz +0ms
body-parser:json skip empty body +0ms
express:router <anonymous> : /string-width/-/string-width-5.1.2.tgz +1ms
express:router encodeScopePackage : /string-width/-/string-width-5.1.2.tgz +0ms
express:router router : /string-width/-/string-width-5.1.2.tgz +1ms
express:router dispatching GET /string-width/-/string-width-5.1.2.tgz +0ms
verdaccio:auth allow access for 'string-width' +0ms
verdaccio [auth/allow_action]: user: undefined +0ms
verdaccio [auth/allow_action]: hasPermission? true} for user: undefined +0ms
verdaccio:plugin:local-storage storage path selected: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs +19s
verdaccio:plugin:local-storage storage absolute path: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs\string-width +0ms
verdaccio:plugin:local-storage:fs read a a tarball 'string-width-5.1.2.tgz' on path 'C:\\Dev\\sources\\IdeaProjects\\aw-stage-2406-github\\tarLibs\\string-width\\string-width-5.1.2.tgz' +0ms
verdaccio:plugin:local-storage:fs error on read a tarball 'string-width-5.1.2.tgz' with error [Error: ENOENT: no such file or directory, open 'C:\Dev\sources\Ide
aProjects\aw-stage-2406-github\tarLibs\string-width\string-width-5.1.2.tgz'] { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\\Dev\\sources\\IdeaProjects\\aw-stage-2406-github\\tarLibs\\string-width\\string-width-5.1.2.tgz' } +4ms
verdaccio:plugin:local-storage:fs abort on read a tarball 'string-width-5.1.2.tgz' +2ms
verdaccio:plugin:local-storage storage path selected: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs +7ms
verdaccio:plugin:local-storage storage absolute path: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs\string-width +0ms
verdaccio:plugin:local-storage:fs read a package 'string-width' +0ms
verdaccio:plugin:local-storage:fs reading the file: 'C:\\Dev\\sources\\IdeaProjects\\aw-stage-2406-github\\tarLibs\\string-width\\package.json' +0ms
verdaccio:plugin:local-storage:fs read file 'C:\\Dev\\sources\\IdeaProjects\\aw-stage-2406-github\\tarLibs\\string-width\\package.json' succeed +2ms
verdaccio:plugin:local-storage:fs read storage file 'string-width' has succeed +1ms
verdaccio:plugin:local-storage storage path selected: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs +5ms
verdaccio:plugin:local-storage storage absolute path: C:\Dev\sources\IdeaProjects\aw-stage-2406-github\tarLibs\string-width +0ms
verdaccio:plugin:local-storage:fs write a tarball for a package 'string-width-5.1.2.tgz' +3ms
verdaccio:plugin:local-storage:fs write a temporal name 'C:\\Dev\\sources\\IdeaProjects\\aw-stage-2406-github\\tarLibs\\string-width\\string-width-5.1.2.tgz.tmp-5168405667871572' +0ms
verdaccio:middleware:error is error < 409 undefined +384ms
verdaccio:middleware:error send internal error Error: unable to verify the first certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34) at TLS
Socket.emit (node:events:517:28) at TLSSocket._finishInit (node:_tls_wrap:1070:8) at ssl.onhandshakedone (node:_tls_wrap:856:12) { code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } +0ms
express:router <anonymous> : /string-width/-/string-width-5.1.2.tgz +382ms
express:router router : /string-width/-/string-width-5.1.2.tgz +0ms
express:router handleError : /string-width/-/string-width-5.1.2.tgz +1ms
verdaccio:middleware:error error handler init +2ms
verdaccio:middleware:error no error to report, jump next layer +0ms
express:router final : /string-width/-/string-width-5.1.2.tgz +0ms
verdaccio:middleware:final set verdaccio_error method +0ms
compression application/octet-stream; charset=utf-8 not compressible +0ms
compression no compression: filtered +0ms
info <-- ::1 requested 'GET /string-width/-/string-width-5.1.2.tgz'
info --- auth/allow_action: access granted to: undefined
info --- allowed access for string-width
http <-- 200, user: null(::1), req: 'GET /string-width/-/string-width-5.1.2.tgz', bytes: 0/0
info --- making request: 'GET https://artifacts-in.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/string-width/-/string-width-5.1.2.tgz'
error--- unexpected error: unable to verify the first certificate
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
at TLSSocket.emit (node:events:517:28)
at TLSSocket._finishInit (node:_tls_wrap:1070:8)
at ssl.onhandshakedone (node:_tls_wrap:856:12)
http <-- 500, user: null(::1), req: 'GET /string-width/-/string-width-5.1.2.tgz', error: internal server error
It seems verdaccio try to request to dist.tarball url if exists, instead of uplink url and after failing of connection, it doesn't try to request from uplink for fallback.
I don't want to search & replace all the dist.tarball urls to uplink url. Is there any way to ignore package.json's dist.tarball and forcing to use uplink only?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently, our project is using specific framework and this framework is using verdaccio.
This framework also contains verdaccio's storage folder to provide builtin packages for offline usage.
The problem is in the
package.json
files of builtin packages, everydist.tarball
url ishttps://artifacts-in.industrysoftware.automation.siemens.com/artifactory/api/npm/npm/...
which is private repository for the framework so we can't connect to the url.When I run
npm install [email protected]
, I get this error.The tarball file doesn't exist but existing in the
package.json
file.It seems verdaccio try to request to
dist.tarball
url if exists, instead of uplink url and after failing of connection, it doesn't try to request from uplink for fallback.I don't want to search & replace all the
dist.tarball
urls to uplink url. Is there any way to ignorepackage.json
'sdist.tarball
and forcing to use uplink only?I would be thankful for any advises.
Beta Was this translation helpful? Give feedback.
All reactions