NodeJS抛出错误“找不到模块”

时间:2019-01-28 00:01:32

标签: node.js macos terminal

我对此有很多问题。运行保存在桌面上的Node项目时,出现此错误

T(n) = 4T(n/2) + Θ(n^2 /logn)

使用express在node.js中的代码:

internal/modules/cjs/loader.js:583
throw err;

Error: Cannot find module {My project name}
at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
[nodemon] app crashed - waiting for file changes before starting...

0 个答案:

没有答案