generator-node-restify-mongodb icon indicating copy to clipboard operation
generator-node-restify-mongodb copied to clipboard

Trying to copy from a source that does not exist: ....\generator-node-restify-mongodb\generators\app\templates\.gitignore

Open michaeldunnOMM opened this issue 6 years ago • 1 comments

After installing

npm install -g generator-node-restify-mongodb

I try

yo node-restify-mongodb

And I get the following error

AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\generators\app\templates.gitignore at EditionInterface.exports.copy (C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\node_modules\mem-fs-editor\lib\actions\copy.js:47:3) at module.exports.projectfiles (C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\generators\app\index.js:66:13) at Object. (C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\node_modules\yeoman-generator\lib\index.js:399:25) at C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\node_modules\run-async\index.js:25:25 at new Promise () at C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\node_modules\run-async\index.js:24:19 at self.env.runLoop.add.completed (C:\Users\michael.dunn\AppData\Roaming\npm\node_modules\generator-node-restify-mongodb\node_modules\yeoman-generator\lib\index.js:400:11) at runCallback (timers.js:789:20) at tryOnImmediate (timers.js:751:5) at processImmediate [as _immediateCallback] (timers.js:722:5)

michaeldunnOMM avatar Feb 28 '18 11:02 michaeldunnOMM

@michaeldunnOMM -> For some reason the .gitignore file is missing. You can simply create the file in the intended destination with the content from the corresponding .gitignore file in this repo. That should work fine. Hope this helps.

mgcox2 avatar Mar 14 '18 20:03 mgcox2