2016-07-13 4 views
0

installieren Während ich versuche, Loopback-Connector für IBM DB2 zu installieren, ich bin die folgenden Fehler bekommen:kann nicht Loopback-Anschluss für IBM DB2

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

npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail o 
n node releases >= v7.0. Please update to [email protected]^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` 

bitte mir helfen, das Problem zu beheben.

+0

Können Sie eine Kopie Ihrer Datei 'server/datasources.json' hochladen? (Empfindliche Werte redigiert natürlich) –

+0

server/datasources.json: { "IBMDB2": { "Host": "1xx.1x.1xx.199", "Anschluss": 50001, "Datenbank": " SAMPLE“, "Passwort": "xxx123", "name": "IBMDB2", "dsn": "", "user": "db2inst1", "Anschluss": "db2" } } – inquisitive

Antwort

1

Wie wäre es mit npm install loopback-connector-db2 --save?

+0

@interessiert: Hat diese Hilfe Ihr Problem gelöst oder benötigen Sie noch Hilfe? –