appium / appium-doctor

[Deprecated] Please use https://github.com/appium/appium/tree/master/packages/doctor
Apache License 2.0
128 stars 34 forks source link

1.16.1 was broken #133

Closed billnbell closed 1 year ago

billnbell commented 1 year ago

Issue.

yarn doctor
yarn run v1.22.18
warning package.json: No license field
$ appium-doctor --ios
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './build/bin/appium-doctor'
Require stack:
- /Users/bill/theclub/TheClub/browserstack/node_modules/appium-doctor/appium-doctor.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/bill/theclub/TheClub/browserstack/node_modules/appium-doctor/appium-doctor.js:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/bill/theclub/TheClub/browserstack/node_modules/appium-doctor/appium-doctor.js'
  ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
billnbell commented 1 year ago

appium-doctor - v1.16.1

billnbell commented 1 year ago

node --version v16.16.0

billnbell commented 1 year ago

in package.json scripts: "doctor": "appium-doctor --ios",

KazuCocoa commented 1 year ago

How about 1.16.2?

$ appium-doctor
WARN AppiumDoctor [Deprecated] Please use appium-doctor installed with "npm install @appium/doctor --location=global"
info AppiumDoctor Appium Doctor v.1.16.2
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###