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
npm list -g --depth 0
:Steps to reproduce
nvm install 17
, `nvm use 17?npm install -g yo generator-phovea
yo phovea:update
Observed behavior
Output:
Expected behavior
Updated workspace.