replit / upm

⠕ Universal Package Manager - Python, Node.js, Ruby, Emacs Lisp.
https://repl.it
Other
1.05k stars 89 forks source link

Can't handle packages for nodejs with alias #55

Open CHNB128 opened 3 years ago

CHNB128 commented 3 years ago

I have some packages like:

  ...,
  "dependencies": {
    "@nuxtjs/auth": "^4.9.1",
    "@nuxtjs/axios": "^5.12.0",
    "@nuxtjs/proxy": "^2.0.1",
    "@nuxtjs/pwa": "^3.0.0-beta.20",
  }

upm read them as:

some-project on  master [!?] is 📦 v1.0.0 on 🐳 v19.03.13 
➜ upm add --guess     
--> yarn add vue-i18n nuxt_plugin_axios_cde3cfa4 vuex nuxt_plugin_workbox_0fb939ca moment vue-router deepcopy defu vue vuetify nuxt_plugin_pluginmain_11d296d2 vue-meta nuxt_plugin_plugin_412891d6 unfetch nuxt_plugin_cookieuniversalnuxt_c544c854 nuxt_plugin_plugin_2c7c6a2c nuxt_plugin_icons_61876082 js-cookie axios nuxt_plugin_meta_7ad8c670 dotenv node-fetch vue-no-ssr @/utils vue-client-only is-https nuxt_plugin_plugin_3ab90918 cookie-universal cookie nuxt_plugin_notification_1685ae90 nuxt_plugin_pluginrouting_5d43c5d8

So this all fail with error:

yarn add v1.22.10
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/nuxt_plugin_axios_cde3cfa4: Not found".

Because upm incorrectly read package names.

I guess this unexpected behavior.

P.S. If you haven't hand to handle this issue, you can describe solution a bit, I am impressed with your project and will be happy to contribute.

blast-hardcheese commented 8 months ago

Hey! I'm trying to reproduce this bug locally, I can't seem to do so. Can you provide a link to a repl or a repository containing a reproducing case? Thank you in advance!