2016-04-28 13 views
5

Ich versuche, das node-odbc Paket (https://github.com/wankdanker/node-odbc) in meiner Sails App zu installieren.Das Ausführen von npm install odbc in der Sails-App führt zu Fehlern?

sich nach den docs habe ich installiert und konfiguriert unixobdc auf dem Server, aber wenn ich npm installiere odbc --save im App-Verzeichnis ich die folgende Fehlermeldung erhalten:

npm ERR! Linux 3.19.0-58-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "odbc" "--save" npm ERR! node v4.4.3 npm ERR! npm v3.8.7

npm ERR! Cannot set property 'waterline-criteria' of undefined npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! *LINK{//github.com/npm/npm/issues} npm ERR! Linux 3.19.0-58-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "odbc" "--save" npm ERR! node v4.4.3 npm ERR! npm v3.8.7

npm ERR! Cannot set property 'waterline-cursor' of undefined npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! *LINK{//github.com/npm/npm/issues} npm ERR! Linux 3.19.0-58-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "odbc" "--save" npm ERR! node v4.4.3 npm ERR! npm v3.8.7

npm ERR! Cannot set property 'waterline-errors' of undefined npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! *LINK{//github.com/npm/npm/issues}

npm ERR! Please include the following file with any support request: npm ERR! /var/www/sails.dev/secApp/npm-debug.log

Alle Ideen, warum Das ist oder wie könnte ich dieses Paket in Sails arbeiten lassen?

Antwort

2

Try this:

den node_modules Ordner in Ihrem Anwendungsverzeichnis löschen.

aus Ihrem Anwendungsverzeichnis diese beiden Befehle ausführen:

npm install; 

npm install odbc --save; 

ich etwas vermuten, mit Ihren Anwendungen NPM Installation schief gegangen, so dass Sie es einfach Ihr neues Paket erfrischend sind, während das Hinzufügen.

Verwandte Themen