strapi / strapi-starter-gatsby-corporate

strapi-starter-gatsby-corporate-git-main-strapijs.vercel.app
MIT License
27 stars 8 forks source link

Package not found when installing with yarn #25

Open PeterBowater opened 3 years ago

PeterBowater commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

got the same error as @bingalls

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