nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
399 stars 34 forks source link

yarn package not found #93

Closed theRenard closed 3 years ago

theRenard commented 3 years ago

I'm using yarn to install dependencies.

In my GitHub CI I've got this message:

4
yarn install v1.22.11
5
[1/4] Resolving packages...
6
[2/4] Fetching packages...
7
error An unexpected error occurred: "https://registry.yarnpkg.com/nuxt-property-decorator/-/nuxt-property-decorator-9.1.2.tgz: Request failed \"404 Not Found\"".
8
info If you think this is a bug, please open a bug report with the information provided in "/home/runner/work/Playground/Playground/yarn-error.log".
9
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
10
Error: Process completed with exit code 1. 

strange enough installing on my machine works fine

this is my yarn.lock


    nuxt-property-decorator@^2.9.1:
      version "2.9.1"
      resolved "https://registry.yarnpkg.com/nuxt-property-decorator/-/nuxt-property-decorator-2.9.1.tgz#60fd87b64d85519b091374c7ea4c0ce1979f6afa"
      integrity sha512-dE2GrrGKZMhv0dHAr+Lmj+JOQfjIouINgF58QNRDFNOZXMJrXxKO5zGqvCRwmx3hxqqwht7TXHdz9w1AnvL2IA==
      dependencies:
        vue-class-component "^7.2.6"
        nuxt-property-decorator "^9.0.0"
        vuex-class "^0.3.2"
        vuex-module-decorators "^1.0.1"
theRenard commented 3 years ago

a workaround is:

yarn config set registry https://registry.npmjs.org
rm yarn.lock
yarn
danielroe commented 3 years ago

@theRenard It looks like your lockfile is wrong. nuxt-property-decorator "^9.0.0" should be vue-property-decorator "^9.0.0" as it is in https://unpkg.com/browse/nuxt-property-decorator@2.9.1/package.json. Is there any chance you did a find/replace throughout your project for vue-property-decorator => nuxt-property-decorator at some point?

theRenard commented 3 years ago

That's exactly what happened 👍. We can absolutely close the issue as there's none.