0
nodejs(v6.9.4)をEC2インスタンスにクリーンインストールしましたが、nodejsアプリケーションを実行しようとすると次のエラーが表示されます。Nodejs EC2モジュール './lib/nodefs-handler'を見つけることができません
私がしようとするとnpm install nodefs-handler
でモジュールをインストールすると、私はnodefs-ハンドラを推測していますエラー
'nodefs-handler' is not in the npm registry.
が何らかの理由でインストールされていないnodejs内のいくつかのモジュールであり得る
Error: Cannot find module './lib/nodefs-handler'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ec2-user/asistio/node_modules/chokidar/index.js:12:21)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/ec2-user/asistio/node_modules/watchpack/lib/DirectoryWatcher.js:7:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
が、私これを解決する方法に関する解決策を見つけることができます。 アイデアをいただければ幸いです! TIA! 、
rm -rf /usr/local/lib/node_modules/npm
を、マシンを再起動して、ノードのjs
または
削除/ usr/local/libを再インストールします。
alled nodejsをバージョンv7.2.0に変更しても、同じエラーが表示されます。(私はこれらの手順に従ってノードをインストールしました:http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws -ec2-complete-guide /何が欠けているのか? –
node_modulesを削除してください – Codesingh
更新された答えをご覧ください – Codesingh