无法为IBM DB2安装环回连接器

时间:2016-07-13 06:54:08

标签: node.js npm loopbackjs apiconnect

当我尝试为IBM DB2安装loopback连接器时,我收到以下错误:

D:\official\office works\loopback\DB2try\employee_details> npm install loopback-connector-db2

npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.

D:\official\office works\loopback\DB2try\employee_details>apic loopback:refresh

Updating swagger and product definitions
Error: The LoopBack application is not loaded.

WARNING: LoopBack connector "db2" is not installed as any of the following modules:

 ./connectors/db2
loopback-connector-db2

To fix, run:

    npm install loopback-connector-db2

Cannot load the LoopBack application: Cannot create data source "IBMDB2":
WARNING: LoopBack connector "db2" is not installed as any of the following modul
es:

 ./connectors/db2
loopback-connector-db2

To fix, run:

    npm install loopback-connector-db2

Please fix the problem and run `apic loopback:refresh`

请帮助我解决问题。

1 个答案:

答案 0 :(得分:1)

npm install loopback-connector-db2 --save怎么样?