Dynatrace / backstage-plugin

Dynatrace Backstage Plugin
Apache License 2.0
21 stars 3 forks source link

Install Plugins error: Registry not found on yarn/npm #102

Closed JohnYunez closed 6 months ago

JohnYunez commented 6 months ago

Summary

Trying to add any of the 3 packages (backstage-plugin-dql, backstage-plugin-dql-backend, backstage-plugin-dql-common), a "Not found" error is received.

I have change the repository to npm: also unsuccessful

Expected Behavior

>yarn --cwd packages/app add @dynatrace/backstage-plugin-dql
[n/n] Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
info All dependencies
└─ @dynatrace/backstage-plugin-dql@a.b.c
Done in tt.tts.

Current Behavior

>yarn --cwd packages/app add @dynatrace/backstage-plugin-dql
error Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found`

Steps to Reproduce

  1. run:
    cd packages/app; yarn add @dynatrace/backstage-plugin-dql

    Possible Solution

Context

user@hostname:~/backstage$ cd packages/app
user@hostname:~/backstage/packages/app$ yarn add @dynatrace/backstage-plugin-dql --verbose
yarn add v1.22.22
verbose 0.208621221 Checking for configuration file "/home/user/backstage/packages/app/.npmrc".
verbose 0.209068736 Checking for configuration file "/home/user/.npmrc".
verbose 0.209471744 Found configuration file "/home/user/.npmrc".
verbose 0.210322772 Checking for configuration file "/home/user/.nvm/versions/node/v20.11.0/etc/npmrc".
verbose 0.210725502 Checking for configuration file "/home/user/backstage/packages/app/.npmrc".
verbose 0.210919876 Checking for configuration file "/home/user/backstage/packages/.npmrc".
verbose 0.211062098 Checking for configuration file "/home/user/backstage/.npmrc".
verbose 0.211240306 Checking for configuration file "/home/user/.npmrc".
verbose 0.211461927 Found configuration file "/home/user/.npmrc".
verbose 0.212027556 Checking for configuration file "/home/.npmrc".
verbose 0.213230323 Checking for configuration file "/home/user/backstage/packages/app/.yarnrc".
verbose 0.213606957 Checking for configuration file "/home/user/.yarnrc".
verbose 0.21384815 Found configuration file "/home/user/.yarnrc".
verbose 0.214231051 Checking for configuration file "/home/user/.nvm/versions/node/v20.11.0/etc/yarnrc".
verbose 0.214367723 Checking for configuration file "/home/user/backstage/packages/app/.yarnrc".
verbose 0.214465126 Checking for configuration file "/home/user/backstage/packages/.yarnrc".
verbose 0.214549226 Checking for configuration file "/home/user/backstage/.yarnrc".
verbose 0.214668267 Checking for configuration file "/home/user/.yarnrc".
verbose 0.214760191 Found configuration file "/home/user/.yarnrc".
verbose 0.215451003 Checking for configuration file "/home/.yarnrc".
verbose 0.223513062 current time: 2024-05-20T13:54:25.323Z
[1/4] Resolving packages...
verbose 0.684119727 Performing "GET" request to "https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql".
verbose 1.577293128 Request "https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql" finished with status code 404.
verbose 1.587709245 Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
error Error: https://registry.yarnpkg.com/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
user@hostname:~/backstage/packages/app$ yarn config set registry https://registry.npmjs.org/
yarn config v1.22.22
success Set "registry" to "https://registry.npmjs.org/".
Done in 0.04s.
user@hostname:~/backstage/packages/app$ yarn add @dynatrace/backstage-plugin-dql
yarn add v1.22.22
[1/4] Resolving packages...
error Error: https://registry.npmjs.org/@dynatrace%2fbackstage-plugin-dql: Not found
    at params.callback [as _callback] (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:66680:18)
    at self.callback (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:141410:22)
    at Request.emit (node:events:518:28)
    at Request.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142382:10)
    at Request.emit (node:events:518:28)
    at IncomingMessage.<anonymous> (/home/user/.nvm/versions/node/v20.11.0/lib/node_modules/yarn/lib/cli.js:142304:12)
    at Object.onceWrapper (node:events:632:28)
    at IncomingMessage.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Your Environment

yarn v1.22.22 backstage v1.26.0

Kirdock commented 6 months ago

Unfortunately, our plugin is still not on npm yet but on github instead. Could you try the following as described here? https://github.com/Dynatrace/backstage-plugin/issues/68#issuecomment-2060655833

Kirdock commented 6 months ago

The plugin(s) are now available on npm 👍

johannes-b commented 6 months ago

@JohnYunez can you please confirm that the issue is resolved?

JohnYunez commented 6 months ago

It works!

Thanks a lot @Kirdock @johannes-b

├─ @dynatrace/backstage-plugin-dql-common@1.0.0
└─ @dynatrace/backstage-plugin-dql@1.0.0
Done in 13.94s.

├─ @dynatrace/backstage-plugin-dql-backend@1.0.0
└─ app@0.0.0
Done in 13.74s.

├─ @dynatrace/backstage-plugin-dql-common@1.0.0
└─ app@0.0.0
Done in 11.83s.