0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Cannot find module './algs' などモジュールが見つからないエラー

Posted at

これまでWindowsローカルで動いていたファイルをAWSCloud9に移行したら動かなくなった。
エラーは以下の表示。

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)

./algsなんて使ってないし、なんじゃこりゃ。。。
って思ってたら非常に単純で、
at Object.<anonymous> (C:<file path>\node_modules\sshpk\lib\key.js:6:12)
ここが味噌でした。

npm install sshpk

で無事解決。読解力の問題ですね。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?