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

App install fails #1

Open
ChrissaK opened this issue May 4, 2023 · 2 comments
Open

App install fails #1

ChrissaK opened this issue May 4, 2023 · 2 comments

Comments

@ChrissaK
Copy link

ChrissaK commented May 4, 2023

Environment info:

  • node version (node --version): v16.20.0
  • npm version (npm --version): 8.19.4
  • yarn version (yarn --version): 1.22.19

I'm using a mac with chip Apple M2 Max and macOS Ventura 13.0.

Problem description:

I was trying to install the app from the fem-2018 branch, as this seemed to reflect the code that was used on the course in https://frontendmasters.com/courses/testing-practices-principles/.

However, the command npm run setup --silent failed with the message:

error installing dependencies in "/Users/{myuser}/testing-workshop"
/bin/bash: concurrently: command not found

Based on this message, I tried to install concurrently https://www.npmjs.com/package/concurrently by doing npm i concurrently but it failed with the message:

npm ERR! code 1
npm ERR! path /Users/{myuser}/testing-workshop/node_modules/node
npm ERR! command failed
npm ERR! command /bin/bash -c -- node installArchSpecificPackage
npm ERR! npm ERR! code ETARGET
npm ERR! npm ERR! notarget No matching version found for [email protected].
npm ERR! npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! npm ERR! notarget a package version that doesn't exist.
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /Users/{myuser}/.npm/_logs/2023-05-04T11_37_59_398Z-debug-0.log
npm ERR! node:internal/modules/cjs/loader:1029
npm ERR!   throw err;
npm ERR!   ^
npm ERR! 
npm ERR! Error: Cannot find module 'node-bin-darwin-arm64/package.json'
npm ERR! Require stack:
npm ERR! - /Users/{myuser}/testing-workshop/node_modules/node/installArchSpecificPackage.js
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
npm ERR!     at Function.resolve (node:internal/modules/cjs/helpers:114:19)
npm ERR!     at ChildProcess.<anonymous> (/Users/{myuser}/testing-workshop/node_modules/node-bin-setup/index.js:19:27)
npm ERR!     at ChildProcess.emit (node:events:513:28)
npm ERR!     at maybeClose (node:internal/child_process:1100:16)
npm ERR!     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     '/Users/{myuser}/testing-workshop/node_modules/node/installArchSpecificPackage.js'
npm ERR!   ]
npm ERR! }

Then I followed the Troubleshooting section instructions, but no luck there.
In detail, the verify script run successfully with the output:

🎉  Congrats! Your system is setup properly
You should be good to install and run things.

However, the npm install command failed with the following message:

npm ERR! code 1
npm ERR! path /Users/{myuser}/testing-workshop/node_modules/node
npm ERR! command failed
npm ERR! command /bin/bash -c -- node installArchSpecificPackage
npm ERR! npm ERR! code ETARGET
npm ERR! npm ERR! notarget No matching version found for [email protected].
npm ERR! npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! npm ERR! notarget a package version that doesn't exist.
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /Users/{myuser}/.npm/_logs/2023-05-04T11_47_08_317Z-debug-0.log
npm ERR! node:internal/modules/cjs/loader:1029
npm ERR!   throw err;
npm ERR!   ^
npm ERR! 
npm ERR! Error: Cannot find module 'node-bin-darwin-arm64/package.json'
npm ERR! Require stack:
npm ERR! - /Users/{myuser}/testing-workshop/node_modules/node/installArchSpecificPackage.js
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
npm ERR!     at Function.resolve (node:internal/modules/cjs/helpers:114:19)
npm ERR!     at ChildProcess.<anonymous> (/Users/{myuser}/testing-workshop/node_modules/node-bin-setup/index.js:19:27)
npm ERR!     at ChildProcess.emit (node:events:513:28)
npm ERR!     at maybeClose (node:internal/child_process:1100:16)
npm ERR!     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: [
npm ERR!     '/Users/{myuser}/testing-workshop/node_modules/node/installArchSpecificPackage.js'
npm ERR!   ]
npm ERR! }

It seems like it's the same message as above. Not sure how to proceed from here, any advice will be greatly appreciated!

@shivankkunwar
Copy link

Did you find a way to fix it?

@owghanem
Copy link

owghanem commented Sep 24, 2024

Hi, in case someone is still interested, this is node version issue. I tried V18 didn't work then tried V14 and it seems to working fine. Then I found out that it's stated in the readme that they use V16 or greater which I assume V18 wouldn't have been out yet and didn't break their code yet.

Anyway, just use V16.

Edit: The exact versions stated does not work in fact, but V14 works...

Anyway, just use V14

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

No branches or pull requests

3 participants