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

Generator does not work with Node 17 #499

Open
keckelt opened this issue Feb 14, 2022 · 0 comments
Open

Generator does not work with Node 17 #499

keckelt opened this issue Feb 14, 2022 · 0 comments

Comments

@keckelt
Copy link
Member

keckelt commented Feb 14, 2022

Steps to reproduce

  1. nvm install 17, `nvm use 17?
  2. npm install -g yo generator-phovea
  3. cd to any product, run yo phovea:update

Observed behavior

Output:

node:events:504
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, scandir '/home/klaus/.npm-global/lib/node_modules/generator-phovea/lib/generators'
    at Object.readdirSync (node:fs:1392:3)
    at exports.readdir (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/sync/fs.js:18:20)
    at Object.safeCall [as safe] (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/call.js:24:8)
    at DirectoryReader.readNextDirectory (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:78:10)
    at Readable.DirectoryReader.stream._read (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:57:18)
    at Readable.read (node:internal/streams/readable:496:27)
    at readdirSync (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/sync/index.js:27:21)
    at Function.readdirSyncStat (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/@mrmlnc/readdir-enhanced/lib/index.js:34:10)
    at ReaderSync.dynamicApi (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/fast-glob/out/providers/reader-sync.js:64:24)
    at ReaderSync.api (/home/klaus/.npm-global/lib/node_modules/yo/node_modules/fast-glob/out/providers/reader-sync.js:56:25)
Emitted 'error' event on Readable instance at:
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path

Expected behavior

Updated workspace.

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