Comments (10)
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.
I encountered the same problem.
from yo.
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.
Same Error.
Win10
WSL2
Ubuntu 22.04.2
Node 18.16.0
npm 9.5.1
from yo.
I encountered the same error.
Win 11, WSL2, Ubuntu 22.04.2, Node 18.16.0, npm 9.5.1
from yo.
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.
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.
How, how, how... same issue (almost)
Is there any thought on that?
Thanks.
from yo.
@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.
@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)
- `yo` depends on deprecated `module.parent`, should update `meow`
- Yo should use esm HOT 2
- Yeoman broken after install. HOT 1
- Cannot run after installing yo
- Import Web is not working for accessing another site in SPFX
- Option alias to short, bad error
- Generator Office does not support the Node LTS 19.8.1 HOT 1
- Yeoman-Environment Issue HOT 4
- `generator.run is not a function` error after installing 5.0.0 HOT 3
- Running the generator from a local folder no longer works in 5.0.0 HOT 6
- microsoft/sharepoint generator HOT 4
- Versions && Peer dependencies
- Cannot find package 'mem-fs' imported from HOT 8
- Enable ESNext syntax for generators HOT 1
- Any table of Yeoman versions applicable to Node and dependency versions?
- SyntaxError: The requested module 'mem-fs' does not provide an export named 'loadFile', SyntaxError: The requested module 'mem-fs' does not provide an export named 'isFileTransform', sharedFs.pipeline is not a function HOT 2
- Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'stream' HOT 2
- generator.run is not a function
- Update vulnerable dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yo.