$ node index.js

module.js:471
    throw err;
    ^

Error: Cannot find module '/home/josh/index.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3

 

 

安装最新版本的npm可以解决上面问题:
sudo npm install npm@latest -g

 

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-08-29
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-07-31
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案