Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4: Could not resolve dependency @strapi/plugin-upload@"^4.0.0" #11139

Closed
johind opened this issue Sep 29, 2021 · 17 comments
Closed

v4: Could not resolve dependency @strapi/plugin-upload@"^4.0.0" #11139

johind opened this issue Sep 29, 2021 · 17 comments
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around status: can not reproduce Not enough information to reproduce

Comments

@johind
Copy link

johind commented Sep 29, 2021

Strapi v4 Installation on Ubuntu stops at installation of @strapi/plugin-upload@"^4.0.0"

Happens with and without --quickstart option

Steps to reproduce

  1. Run npx create-strapi-app@beta beta
  2. Select Custom
  3. Select sqlite
  4. agree to default database path
ubuntu@ubuntu:/dev/strapi$ npx create-strapi-app@beta beta
? Choose your installation type Custom (manual settings)
? Choose your default database client sqlite
? Filename: .tmp/data.db

Creating a project with custom database options.
Creating a new Strapi application at /dev/strapi/beta.
Creating files.
Error while installing dependencies:
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @strapi/provider-upload-local@4.0.0-beta.0
npm WARN Found: peer @strapi/plugin-upload@"^4.0.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @strapi/plugin-upload@"^4.0.0" from the root project
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @strapi/plugin-upload@^4.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2021-09-29T16_40_53_460Z-debug.log

 Keep trying!

Oh, it seems that you encountered errors while installing dependencies in your project.
Don't give up, your project was created correctly.
Fix the issues mentioned in the installation errors and try to run the following command:

cd /dev/strapi/beta && npm install

ubuntu@ubuntu:/dev/strapi$ npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @strapi/provider-upload-local@4.0.0-beta.0
npm WARN Found: peer @strapi/plugin-upload@"^4.0.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @strapi/plugin-upload@"^4.0.0" from the root project
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @strapi/plugin-upload@^4.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2021-09-29T18_04_46_392Z-debug.log

System

  • Node.js version: v14.17.6
  • Strapi version: 4.0.0-beta.0
  • Database: sqlite
  • Operating System: Ubuntu 20.04.3 LTS, Virtual Machine
@derrickmehaffy
Copy link
Member

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @strapi/provider-upload-local@4.0.0-beta.0
npm WARN Found: peer @strapi/plugin-upload@"^4.0.0" from the root project

Are you using a custom npm proxy or have some kind of custom resolver system configured on your system?

Can't reproduce on Linux Mint 20.2 using npm or yarn

@derrickmehaffy derrickmehaffy added flag: v4-Alpha/Beta severity: medium If it breaks the basic use of the product but can be worked around status: can not reproduce Not enough information to reproduce issue: bug Issue reporting a bug labels Sep 29, 2021
@derrickmehaffy derrickmehaffy added this to To do in v4 Alpha/Beta Bugs via automation Sep 29, 2021
@johind
Copy link
Author

johind commented Sep 29, 2021

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @strapi/provider-upload-local@4.0.0-beta.0
npm WARN Found: peer @strapi/plugin-upload@"^4.0.0" from the root project

Are you using a custom npm proxy or have some kind of custom resolver system configured on your system?

Can't reproduce on Linux Mint 20.2 using npm or yarn

No, default global npm installation.
The ubuntu vm on which i tried the installation is part of a server cluster using Proxmox.

Tried to reproduce it on Zorin OS too, installation worked fine tho.

Maybe it's an error on my side, sorry for that if that's the case.
Gonna test some more tomorrow.

Installation of Strapi v3 is working fine tho on the same virtual machine.

@daveteu
Copy link

daveteu commented Sep 30, 2021

I have the above issue when using node v16.

Installation works when I use node 14.

I'm using macOs

@MattieBelt
Copy link
Collaborator

I have the above issue when using node v16.

Installation works when I use node 14.

I'm using macOs

Hey @daveteu any difference in NPM/Yarn version as well?

@josephfh
Copy link

In case it helps anyone, I updated my Node version to the latest using nvm (MacOs)

Node v14.17.3 - same error as above
Node v14.18.0 - works 😄

@freekvisser
Copy link

freekvisser commented Oct 1, 2021

Hey there! I faced the same issue. After this command fails, there is a package.json file in your beta folder. In this file I changed the following fields under dependencies from this:

"@strapi/strapi": "4.0.0-beta.0",
"@strapi/plugin-users-permissions": "4.0.0-beta.0",
"@strapi/plugin-i18n": "4.0.0-beta.0",

to this:

"@strapi/strapi": "4.0.0-next.0",
"@strapi/plugin-users-permissions": "4.0.0-next.0",
"@strapi/plugin-i18n": "4.0.0-next.0",

So basically changing the beta part of these three dependencies to next.

Hope this helps!

@LucaNerlich
Copy link

@freekvisser next is the alpha, its older than beta.

@freekvisser
Copy link

@LucaNerlich
Thanks for the heads-up, when executing npm view @strapi/plugin-upload, the returned version is @strapi/plugin-upload@4.0.0-next.0, so I'm guessing the beta version is not yet published to npm?

@LucaNerlich
Copy link

Possibly not for this plugin. MediaLibrary is also disabled in quickstart beta0 as of now.

@daveteu
Copy link

daveteu commented Oct 1, 2021

I have the above issue when using node v16.
Installation works when I use node 14.
I'm using macOs

Hey @daveteu any difference in NPM/Yarn version as well?

It works when I use node v14.17.4 (npm v6.14.14)

Above error will occur when I use node v16.5.0 (npm v7.19.1)

Since @josephfh advised v14.17.3 will cause the same error, I believe the min requirement is node v14.17.4

@LucaNerlich
Copy link

Node 16 is not supported atm.

@alserembani94
Copy link

alserembani94 commented Oct 4, 2021

I have the above issue when using node v16.
Installation works when I use node 14.
I'm using macOs

Hey @daveteu any difference in NPM/Yarn version as well?

It works when I use node v14.17.4 (npm v6.14.14)

Above error will occur when I use node v16.5.0 (npm v7.19.1)

Since @josephfh advised v14.17.3 will cause the same error, I believe the min requirement is node v14.17.4

But the problem is, I use node v14.18.0, and still didn't manage to successfully install @strapi/plugin-upload@4.0.0-next.0

@alserembani94
Copy link

I have the above issue when using node v16.
Installation works when I use node 14.
I'm using macOs

Hey @daveteu any difference in NPM/Yarn version as well?

It works when I use node v14.17.4 (npm v6.14.14)
Above error will occur when I use node v16.5.0 (npm v7.19.1)
Since @josephfh advised v14.17.3 will cause the same error, I believe the min requirement is node v14.17.4

But the problem is, I use node v14.18.0, and still didn't manage to successfully install @strapi/plugin-upload@4.0.0-next.0

For more context, I am currently using WSL2 (Ubuntu). node v14.18.0, npm v7.24.1

@derrickmehaffy
Copy link
Member

you should be on the beta, not the next release.

Try to create a project with npx create-strapi-app@beta testBeta --quickstart

@derrickmehaffy
Copy link
Member

you do need to downgrade your npm version with node also. Node 14/NPM 6 is the max at the moment.

@derrickmehaffy
Copy link
Member

Closing for now as this is almost certainly related to npm v7 issue which we will tackle once we add in node 16 support.

v4 Alpha/Beta Bugs automation moved this from To do to Done Oct 4, 2021
@derrickmehaffy
Copy link
Member

This issue has been mentioned on Strapi Community Forum. There might be relevant details there:

https://forum.strapi.io/t/v4-beta-or-next-a-new-version-of-strapi-is-available-4-0-0-beta-0-4-0-0-next-0/11636/3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around status: can not reproduce Not enough information to reproduce
Projects
No open projects
Development

No branches or pull requests

8 participants