reaction icon indicating copy to clipboard operation
reaction copied to clipboard

Node versioning issue

Open manoj-kumar-tcgls opened this issue 1 year ago • 5 comments

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/[email protected]. 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 avatar Dec 11 '23 12:12 manoj-kumar-tcgls

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

cacaedlsc avatar Feb 06 '24 12:02 cacaedlsc

package

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

image

fre2mansur avatar Feb 06 '24 14:02 fre2mansur

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

cacaedlsc avatar Feb 12 '24 16:02 cacaedlsc

completel not working for me.

issar13 avatar Apr 22 '24 06:04 issar13

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)

pegahes avatar Jul 02 '24 16:07 pegahes