FrontendMasters / testing-workshop

A workshop for learning how to test JavaScript applications

Home Page:https://frontendmasters.com/courses/testing-practices-principles/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App install fails

ChrissaK opened this issue · 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 node-bin-darwin-arm64@8.9.4.
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 node-bin-darwin-arm64@8.9.4.
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!

Did you find a way to fix it?