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

Node versioning issue #6865

Open
manoj-kumar-tcgls opened this issue Dec 11, 2023 · 5 comments
Open

Node versioning issue #6865

manoj-kumar-tcgls opened this issue Dec 11, 2023 · 5 comments
Labels
bug For issues that describe a defect or regression in the released software needs triage For issues that are awaiting triage by the core development team

Comments

@manoj-kumar-tcgls
Copy link

manoj-kumar-tcgls commented Dec 11, 2023

As per the docs reaction requires node v14 or v15, but after cloning the code for npm install node v18 is required and after that for running the code node v14 or v15 is required. and after i do npm install with node v18 i getting error.
npm ERR! code ETARGET npm ERR! notarget No matching version found for @reactioncommerce/api-core@3.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.

@manoj-kumar-tcgls manoj-kumar-tcgls added bug For issues that describe a defect or regression in the released software needs triage For issues that are awaiting triage by the core development team labels Dec 11, 2023
@cacaedlsc
Copy link

when I got this error, I changed the version of the dependency in package.json file into the versions that available. the command is $ npm info [name of dependency you want to check] versions, and when you got the new version, go to package.json and change the version right

@fre2mansur
Copy link

package

can you tell where and what you changed the version please?

image

@cacaedlsc
Copy link

for this case, it seems not have any relation with version. As I remember, when I got this error, I searched a file named getFilesFromRepo.js and do something with the code but I am not really sure which one. While you find the file, copy the code and the error to the chatgpt or else, they might help you, bcs I use them as well

@issar13
Copy link

issar13 commented Apr 22, 2024

completel not working for me.

@pegahes
Copy link

pegahes commented Jul 2, 2024

I have the same problem. when I use node version 14 or 15, the reaction cli throws error. The error is different based on which version of node I am using(14 or 15) but it is related to a syntax error in a file related to reaction cli somewhere in the installed folder. Also when I use node version 20, reaction cli seems to work fine (reaction help does not throw errors) but I can not create a project. This is the error I get with node 15:

node:internal/modules/cjs/loader:924
  const err = new Error(message);
              ^
Error: Cannot find module 'node:tty'

this is the error I get with node 14:

    input ||= this.rawDefault;
          ^^^

SyntaxError: Unexpected token '||='
    at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For issues that describe a defect or regression in the released software needs triage For issues that are awaiting triage by the core development team
5 participants