Feathers: 当我输入升级命令时 Feathers v4 迁移失败

创建于 2019-07-03  ·  3评论  ·  资料来源: feathersjs/feathers

重现步骤

您好,我一直在按照本指南迁移到 Feathers v4,但命令feathers upgrade失败并出现错误AssertionError [ERR_ASSERTION]: When copying multiple files, provide a directory as destination 。 下面是错误的完整显示。

$羽毛升级
事件.js:173
扔er; // 未处理的“错误”事件
^

AssertionError [ERR_ASSERTION]:复制多个文件时,提供一个目录作为目标
在 EditionInterface.exports.copy (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\mem-fs-editor\lib\actions\copy.js:36:5)
在 UpgradeGenerator.writing (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\generator-feathers\generators\upgrade\index.js:54:13)
在对象。(C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:427:27)
在 C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\run-async\index.js:25:25
在新的承诺()
在 C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\run-async\index.js:24:19
在 self.env.runLoop.add.completed (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:428:13)
在 processImmediate (timers.js:637:19)
在以下位置发出“错误”事件:
在 Immediate.setImmediate (C:\Usersusername\AppData\Roaming\npm\node_modules\@feathersjs\cli\node_modules\yeoman-generator\lib\index.js:436:22)
在 processImmediate (timers.js:637:19)

系统配置

我使用的是 Windows 10,Cygwin 和 CMD 都无法运行上述命令。 NodeJS 版本是 v11.10.0,NPM 是 6.9.0。

感谢您指导我,我到处寻找可能的解决方案,但找不到答案。

最有用的评论

应该固定在@feathersjs/[email protected]

所有3条评论

我在使用 WSL 运行 Win 10 时遇到了同样的问题。 Node 版本是 12.2.0 和 npm 6.9.0。

在 linux 上也一样。

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

应该固定在@feathersjs/[email protected]

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

eric-burel picture eric-burel  ·  3评论

arkenstan picture arkenstan  ·  3评论

perminder-klair picture perminder-klair  ·  3评论

arve0 picture arve0  ·  4评论

rstegg picture rstegg  ·  3评论