Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Package not found when installing with yarn #25

Open
PeterBowater opened this issue Sep 30, 2021 · 2 comments
Open

Package not found when installing with yarn #25

PeterBowater opened this issue Sep 30, 2021 · 2 comments

Comments

@PeterBowater
Copy link

Using documented yarn install command:

yarn create strapi-starter my-site gatsby-corporate

We get :

[1/4] 🔍 Resolving packages... error An unexpected error occurred: "https://registry.npmjs.org/create-strapi-corporate-gatsby: Not found".

Noted that the package is not found on npmjs registry if you manually search.

Seems to be working with npx :)

Thanks :)

@bingalls
Copy link

bingalls commented Dec 9, 2021

I don't get a package not found error. There's almost no difference for me, between yarn v2 & npx, e.g.

yarn create strapi-starter my-site gatsby-corporate

I get to the prompt; it makes no difference, whether I choose Quick Start or manual, yarn or npx.

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at getPackageInfo (~/.npm/_npx/ecd569b0a81a6814/node_modules/create-strapi-starter/utils/fetch-npm-starter.js:19:27)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getStarterInfo (~/.npm/_npx/ecd569b0a81a6814/node_modules/create-strapi-starter/utils/build-starter.js:109:26)
at async buildStarter (~/.npm/_npx/ecd569b0a81a6814/node_modules/create-strapi-starter/utils/build-starter.js:133:7)

@safejace
Copy link

got the same error as @bingalls

is there anyway to get this starter working with strapi 4?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants