2016-04-28 26 views
5

私のセイルアプリにnode-odbcパッケージ(https://github.com/wankdanker/node-odbc)をインストールしようとしています。Sailsアプリでnpm install odbcを実行するとエラーが発生しますか?

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

理由上の任意のアイデア:私はインストールして、サーバー上でunixobdc構成されたが、私はNPMは、アプリケーションディレクトリにODBC --saveのインストールを行うとき、私は次のエラーを取得するしているドキュメントを1として

これは、または私がこのパッケージをSailsで動作させる方法ですか?

答えて

2

試用版

アプリケーションディレクトリのnode_modulesフォルダを削除します。

ディレクトリ、アプリケーション内からこれらの2つのコマンドを実行します。

npm install; 

npm install odbc --save; 

私は何かがあなたのアプリケーションのNPMインストールと間違っている疑いがあるので、あなたは自分の新しいパッケージを追加しながら、それを更新しています。

関連する問題