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

yo doctor throws error: Error: Cannot find module 'is-ci' #1773

Open
Raphael40 opened this issue Mar 11, 2024 · 0 comments
Open

yo doctor throws error: Error: Cannot find module 'is-ci' #1773

Raphael40 opened this issue Mar 11, 2024 · 0 comments

Comments

@Raphael40
Copy link

Occurring on WSL Ubuntu version 2

Running:
npm install -g yo generator-code
Followed by:
yo doctor

Yields error:

  throw err;
  ^

Error: Cannot find module 'is-ci'
Require stack:
- /root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/update-notifier/index.js
- /root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/lib/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
    at Module._load (node:internal/modules/cjs/loader:983:27)
    at Module.require (node:internal/modules/cjs/loader:1230:19)
    at require (node:internal/modules/helpers:179:18)
    at lazy (/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/import-lazy/index.js:2:51)
    at /root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/import-lazy/index.js:10:11
    at new UpdateNotifier (/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/update-notifier/index.js:46:4)
    at module.exports (/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/update-notifier/index.js:183:25)
    at updateCheck (/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/lib/cli.js:54:20)
    at Object.<anonymous> (/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/lib/cli.js:190:1) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/node_modules/update-notifier/index.js',
    '/root/.nvm/versions/node/v21.7.1/lib/node_modules/yo/lib/cli.js'
  ]
}

Node.js v21.7.1

Creating a new directory and running:
npm init -y
npm install -d is-ci
Does not resolve the issue and returns the same error.

Running:
npm list is-ci
Returns:

vscode-theme@1.0.0 /root/Workspace/Projects/vscode-theme
├── is-ci@3.0.1
└─┬ yo@5.0.0
  └─┬ update-notifier@5.1.0
    └── is-ci@2.0.0

Can anyone help me resolve this error so I can generate projects with yeoman.
Thanks

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

1 participant