我使用羽毛已有几个月了,我已经创建并使用了多种服务。该应用程序是通过feather / cli命令生成的:“ feathers generate app”。
今天,我尝试使用通常的命令生成新服务:
feathers generate service
只是得到错误:
× This version of the generator will only work with Feathers Buzzard (v3) and up. Please run
羽毛升级first.
好。运行升级。有新错误:
throw new Error('It looks like
@ feathersjs / feathers is already a dependency. I can not run the upgrade again.');
^
我尝试谷歌搜索我的错误,但似乎没有其他人遇到这个问题,所以这必须由我完成。
有什么建议吗?
LE:我在package.json中具有依赖项:
"@feathersjs/errors": "^3.3.6",
"@feathersjs/express": "^1.3.1",
"@feathersjs/feathers": "^3.3.1",
"@feathersjs/socketio": "^3.2.9",
"feathers-knex": "^5.0.7",
"feathers-memory": "^3.0.2",
"feathers-rest": "^1.8.1",
"feathers": "^2.2.4",```
答案 0 :(得分:0)
如果您的feathers
中的dependencies
中仍然有package.json
模块,将显示此错误。如果还已经包含@feathersjs/feathers
,则只需删除feathers
依赖项(确保在应用程序中其他任何不应该使用的依赖项之后)。