我现在使用羽毛几个月了,我已经创建并使用了几种服务。该应用程序使用feather / cli命令生成:'feathers generate app'。
今天我尝试使用通常的命令生成一个新服务:feathers generate service
只是为了得到错误:
× This version of the generator will only work with Feathers Buzzard (v3) and up. Please run
feathers upgradefirst.
精细。运行升级。得到了新的错误:
throw new Error('It looks like
@ feathersjs / feathersis 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",```
如果您的feathers
中的dependencies
中仍然有package.json
模块,则会显示此错误。如果@feathersjs/feathers
已经包含在内,你可以删除feathers
依赖项(确保它不会在你的应用程序中的任何其他地方使用它不应该使用)。