Feathers: Feathers v4 migration fails when I type the upgrade command

Created on 3 Jul 2019  ·  3Comments  ·  Source: feathersjs/feathers

Steps to reproduce

Hi Here, I have been following this guide to migrate to Feathers v4, but the command feathers upgrade fails with the error AssertionError [ERR_ASSERTION]: When copying multiple files, provide a directory as destination. Below is the full display of the error.

$ feathers upgrade
events.js:173
throw er; // Unhandled 'error' event
^

AssertionError [ERR_ASSERTION]: When copying multiple files, provide a directory as destination
at EditionInterface.exports.copy (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\mem-fs-editor\lib\actions\copy.js:36:5)
at UpgradeGenerator.writing (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\generator-feathers\generators\upgrade\index.js:54:13)
at Object. (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:427:27)
at C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\run-async\index.js:25:25
at new Promise ()
at C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\run-async\index.js:24:19
at self.env.runLoop.add.completed (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:428:13)
at processImmediate (timers.js:637:19)
Emitted 'error' event at:
at Immediate.setImmediate (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:436:22)
at processImmediate (timers.js:637:19)

System configuration

I am using Windows 10 and both Cygwin and CMD cannot run the above command. The NodeJS version is v11.10.0 and NPM is 6.9.0.

Thank you for guiding me, I have searched everywhere for a possible fix and couldn't find an answer.

Most helpful comment

Should be fixed in @feathersjs/[email protected]

All 3 comments

I am having the same problem running Win 10 with WSL. Node version is 12.2.0 and npm 6.9.0.

Same on linux.

node: v8.10.0
feathers: @feathersjs/[email protected] 

Should be fixed in @feathersjs/[email protected]

Was this page helpful?
0 / 5 - 0 ratings