phovea / generator-phovea

Yeoman Generator for Phovea
https://www.npmjs.com/package/generator-phovea
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Generator does not work with Node 17 #499

Open keckelt opened 2 years ago

keckelt commented 2 years ago
  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.