solid-contrib / solid-auth-fetcher

A client library for authenticating with Solid
Other
2 stars 6 forks source link

react-native-jose 404 #29

Open ianconsolata opened 2 years ago

ianconsolata commented 2 years ago

When trying to run npm install, I get a 404 which inrerrupts the npm install process, preventing me from installing any new packages. After searching npm list for the cause, I found the following:


❯ node -v
v14.17.6
❯ npm -v
8.1.1
❯ npm list react-native-jose
nextjs-swrlit-tailwindcss@1.0.0 /Users/i/workspace/mysilio-co/garden
└─┬ solid-auth-fetcher@1.5.3
  └── react-native-jose@0.1.0 invalid: "git+https://github.com/hellojoko/react-native-jose.git" from node_modules/solid-auth-fetcher

npm ERR! code ELSPROBLEMS
npm ERR! invalid: react-native-jose@0.1.0 /Users/i/workspace/mysilio-co/garden/node_modules/solid-auth-fetcher/node_modules/react-native-jose

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/i/.npm/_logs/2021-10-22T01_12_24_542Z-debug.log

It seems to believe the way in which the dependency is configured is wrong. When I manually installed react-native-jose the error went away. However, it wrote a different config to package.json that what is in your package.json: https://github.com/solid/solid-auth-fetcher/blob/master/package.json#L93

❯ cat package.json | grep jose 
    "react-native-jose": "github:hellojoko/react-native-jose",

I'm not sure if this is an issue with my local setup, or actually an issue with your package.json format, but wanted to surface this in case others face it too.

ixuz commented 2 years ago

I believe that we've run into the same issue, and found a possible workaround is to install packages via yarn. However, I'm not exactly sure why it doesn't work for npm install .

ianconsolata commented 2 years ago

We upgraded one of our libraries to use the most recent version of solid-auth-fetcher, and that seems to have taken care of the issue for us.