testing-workshop icon indicating copy to clipboard operation
testing-workshop copied to clipboard

App install fails

Open ChrissaK opened this issue 2 years ago • 2 comments

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!

ChrissaK avatar May 04 '23 11:05 ChrissaK

Did you find a way to fix it?

shivankkunwar avatar Nov 04 '23 07:11 shivankkunwar

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

owghanem avatar Sep 24 '24 12:09 owghanem