2016-11-06 39 views
1

nodejsサーバーを実行しようとすると、モジュール './algs'にこのエラーが発生します。誰かがこれを動作させるためにインストールする必要があるモジュールを知っていますか?エラー:モジュール './algs'を見つけることができません

エラー:

$ node index 
module.js:457 
throw err; 
^ 

Error: Cannot find module './algs' 
    at Function.Module._resolveFilename (module.js:455:15) 
    at Function.Module._load (module.js:403:25) 
    at Module.require (module.js:483:17) 
    at require (internal/module.js:20:19) 
    at Object.<anonymous> (C:<file path>\node_modules\sshpk\lib\key.js:6:12) 
    at Module._compile (module.js:556:32) 
    at Object.Module._extensions..js (module.js:565:10) 
    at Module.load (module.js:473:32) 
    at tryModuleLoad (module.js:432:12) 
    at Function.Module._load (module.js:424:3) 

Package.json:

{ 
    "name": "Stock", 
    "version": "0.2.5", 
    "description": "Stock website", 
    "engines": { 
    "node": "5.9.1" 
    }, 
    "main": "index.js", 
    "scripts": { 
    "start": "node index.js" 
    }, 
    "dependencies": { 
    "body-parser": "^1.15.2", 
    "ejs": "2.4.1", 
    "express": "4.13.3", 
    "firebase": "^3.5.2", 
    "jquery": "^3.1.1", 
    "multer": "^1.2.0", 
    "watson-developer-cloud": "^2.8.1" 
    }, 
    "repository": { 
    "type": "git", 
    "url": "<git url>" 
    }, 
    "keywords": [ 
    "node", 
    "heroku", 
    "express" 
    ], 
    "license": "MIT" 
} 

私は​​と./algsを試してみましたが、それは動作しません。

答えて

1

確かにわかりませんが、algsモジュールまたはalgsというモジュールがあるとは思いません。

今日も同様のことが起こりました。 event-streamgulpとし、2つのストリームを連結しようとしました。コードを実行している間、あなたのようなランダムなモジュールerrorが見えました。面白いことに、自分のコードでそのランダムモジュールを使用していないことさえあります。それから私は密接に見て、カンマが2つのストリームの間にないことがわかりました。私はerrorで見つからなかったモジュールは、event-stream(私が使ったモジュール)の依存関係だったと思います。

私はあなたと同じようにメイドの間違いを言っているわけではありませんが、よく見るとあなたを助けるかもしれません。

関連する問題