Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我过去node .在各种 NodeJS 应用程序中运行过,它似乎知道运行index.js,server.js等。是否有package.json我可以配置的设置(或类似的东西)以便 NodeJS 知道应该运行哪个文件?
node .
index.js
server.js
package.json
npm 确实有一个配置:
"main": "app.js"