Giter VIP home page Giter VIP logo

Comments (10)

Mitschiro avatar Mitschiro commented on June 3, 2024 2

Same Error
Windows 11 -> WSL 2 -> Ubuntu 22.04.2

`Error: Cannot find module 'is-ci'
Require stack:

  • /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js
  • /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at lazy (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/import-lazy/index.js:2:51)
    at /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/import-lazy/index.js:10:11
    at new UpdateNotifier (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js:46:4)
    at module.exports (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js:183:25)
    at updateCheck (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js:54:20)
    at Object. (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js:187:1) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js',
    '/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js'
    ]
    }`

from yo.

shayeLee avatar shayeLee commented on June 3, 2024 1

I encountered the same problem.

from yo.

ytnytn1 avatar ytnytn1 commented on June 3, 2024 1

Same Error Windows 11 -> WSL 2 -> Ubuntu 22.04.2

`Error: Cannot find module 'is-ci' Require stack:

  • /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js
  • /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at lazy (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/import-lazy/index.js:2:51)
    at /root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/import-lazy/index.js:10:11
    at new UpdateNotifier (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js:46:4)
    at module.exports (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js:183:25)
    at updateCheck (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js:54:20)
    at Object. (/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js:187:1) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/node_modules/update-notifier/index.js',
    '/root/.nvm/versions/node/v18.16.0/lib/node_modules/yo/lib/cli.js'
    ]
    }`

I have the same error in win 10, wsl2

from yo.

g-taiji-tanaka avatar g-taiji-tanaka commented on June 3, 2024

Same Error.
Win10
WSL2
Ubuntu 22.04.2
Node 18.16.0
npm 9.5.1

from yo.

BaschtianXD avatar BaschtianXD commented on June 3, 2024

I encountered the same error.
Win 11, WSL2, Ubuntu 22.04.2, Node 18.16.0, npm 9.5.1

from yo.

verikono avatar verikono commented on June 3, 2024

bumpty bump bump.
Win 11, WSL2, Ubuntu 22.04.2, Node 20.5.0, npm 9.8.1

edit: found the issue to be the root user login - ie. I was logging into the WSL2/Ubuntu container as root. Added myself as as user and set that to the default login and yo performs as expected.

from yo.

danboggins avatar danboggins commented on June 3, 2024

Running into the same problem on Ubuntu (no WSL):

root@host:/opt/ppp/TEST# yo
node:internal/modules/cjs/loader:1147
  throw err;
  ^

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

If I attempt to run yo as a user:

testuser@host:/opt/ppp/TEST$ yo
Error: Not supported
    at init (/usr/local/lib/node_modules/yo/lib/cli.js:122:23)
    at pre (/usr/local/lib/node_modules/yo/lib/cli.js:83:9)
    at /usr/local/lib/node_modules/yo/lib/cli.js:193:9
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:194:3)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)

node: 20.11.0
npm: 10.2.4
Ubuntu: 20.04 LTS

from yo.

mvsenin avatar mvsenin commented on June 3, 2024

How, how, how... same issue (almost)
image

Is there any thought on that?

Thanks.

from yo.

SBoudrias avatar SBoudrias commented on June 3, 2024

@mvsenin you should upgrade node to an LTS version. Unsupported versions can be dangerous for your business and your users.

Now this is affecting yo, but once fixed on our dependencies, it risks appearing on another library. You'll be playing whack a mole with dependencies until you upgrade to an LTS Node version (18 as of now). https://nodejs.org/en/about/previous-releases

from yo.

mvsenin avatar mvsenin commented on June 3, 2024

@SBoudrias Hi Simon, thanks, I've done that, node version is 20.12.0, but now I'm getting the Error: Cannot find module 'is-ci'...

from yo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.