You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2024. It is now read-only.
The mv() function tries to move files from the project directory, not the templates directory. When trying to generate a module, it gives an error because there is no file named editorconfig in the project directory:
$ yo nm
? What do you want to name your module? unicorn
? What is your module description? My phenomenal module with unicorns!
? What is your GitHub username? haiksgithub
? What is the URL of your website? https://github.com/haiksgithub/
? Do you need a CLI? No
? Do you need code coverage? No
node:events:492
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, scandir '/home/haik/projects/unicorn/editorconfig'
at Object.readdirSync (node:fs:1543:3)
at exports.readdir (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/sync/fs.js:18:20)
at Object.safeCall [as safe] (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/call.js:24:8)
at DirectoryReader.readNextDirectory (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:78:10)
at DirectoryReader.stream._read (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/directory-reader.js:57:18)
at Readable.read (node:internal/streams/readable:515:12)
at readdirSync (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/sync/index.js:27:21)
at Function.readdirSyncStat (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/@mrmlnc/readdir-enhanced/lib/index.js:34:10)
at ReaderSync.dynamicApi (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/fast-glob/out/providers/reader-sync.js:64:24)
at ReaderSync.api (/home/haik/.local/share/nvm/versions/node/v20.5.0/lib/node_modules/generator-nm/node_modules/fast-glob/out/providers/reader-sync.js:56:25)
Emitted 'error' event on Readable instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/home/haik/projects/unicorn/editorconfig'
}
The
mv()
function tries to move files from the project directory, not thetemplates
directory. When trying to generate a module, it gives an error because there is no file namededitorconfig
in the project directory:Node.js version: 20.5.0
Yeoman version: 4.3.1
generator-nm
version: 7.0.0The text was updated successfully, but these errors were encountered: