2017-09-12 28 views
0

私は私のプロジェクトでは、「NPMインストール」を実行しようとしていますが、NPMは、これらの項目については、私はNPMエラーをインストールします:見つかりません「[email protected]」

npm ERR! 404 Not Found: [email protected]^1.0.11

同じ表示を続けている:

restify-nodejs, metrics-nodejs

「xxxx-nodejs」必須項目でのみ発生すると思われるため、混乱しています。

const loggers = require('logger-nodejs'); 
const waterfall = require('async/waterfall'); 
const waterfall = require('async/waterfall'); 
const config = require('config'); 
const Server = require('restify-nodejs').Server; 
const restify = require('restify'); 
const metrics = require('metrics-nodejs'); 
const bootstrap = require('./src/bootstrap'); 
const name = require('./package.json').name; 
const routes = require('./src/routes'); 
const logger = require('./src/utility/logger').logger; 
const auditLogger = require('./src/utility/logger').auditLogger; 

package.jsonファイル:

は、ここに私のindex.jsで必要な項目のリストです。

enter code here 
{ 
    "name": "login", 
    "version": "0.0.19", 
    "description": "xxxxxx description", 
    "main": "index.js", 
    "author": "xxxhh", 
    "license": "xxx", 
    "private": true, 
    "dependencies": { 
    "async": "^2.4.0", 
    "bootstrap": "^3.3.7", 
    "bunyan": "^1.8.5", 
    "config": "^1.24.0", 
    "crypto": "0.0.3", 
    "jsonwebtoken": "^7.4.2", 
    "logger-nodejs": "^1.0.11", 
    "metrics-nodejs": "^0.1.0", 
    "node-cleanup": "^2.1.2", 
    "object-mapper": "^3.0.1", 
    "openid-client": "^1.12.0", 
    "prom-client": "^10.0.2", 
    "properties": "^1.2.1", 
    "request": "^2.81.0", 
    "restify": "^5.0.1", 
    "restify-nodejs": "^2.0.0", 
    "restify-plugins": "^1.6.0", 
    "restify-swagger-jsdoc": "^1.1.2", 
    "splunk-bunyan-logger": "^0.9.2", 
    "uuid": "^3.0.1", 
    "uuid-parse": "^1.0.0", 
    "vue": "^2.4.2", 
    "vue-resource": "^1.3.4" 
    }, 
    "optionalDependencies": { 
    "oracledb": "1.12.2" 
    }, 
    "devDependencies": { 
    "chai": "^4.1.0", 
    "istanbul": "^0.4.5", 
    "mocha": "^3.4.2", 
    "mock-require": "^2.0.1", 
    "sinon": "^1.17.6" 
    }, 
    "scripts": { 
    "start": "node index.js", 
    "contrast": "node index.js", 
    "debug": "node-debug index.js", 
    "test": "mocha --recursive", 
    "test-debug": "mocha --recursive --debug-brk", 
    "coverage": "istanbul cover --include-all-sources node_modules/mocha/bin/_mocha -- --recursive", 
    "install-private": "npm install --registry http://localhost:8081/nexus/content/groups/npm-all/ 
    } 
} 
+0

package.jsonファイルも共有してください。 –

+0

こんにちはPankaj。 jsonファイルを反映するように投稿を編集しました。 ありがとうございました。 –

+0

これらのパッケージはどのように 'package.json'に追加されましたか?彼らは存在しません。 – robertklep

答えて

0

"logger-nodejs"はnpmパッケージではありません。

パッケージ名は、logging-nodejsです。 "restify-nodejs"と同じです。

あなたは、あなたがhttps://npmjs.comでnodejsために利用可能なパッケージを確認することができますhere

から確認することができます。

注:以前はこれらのパッケージがnpmに存在するがパッケージ所有者は削除されていることがあります。

+0

こんにちはpankaj。うん、あなたの権利。これらのパッケージはカスタム作成されているので、npmで利用できないのはなぜですか?プロジェクトの著者に連絡してパッケージを依頼して解決しました。 –

関連する問題