我在考虑

NODE_ENV=production node -r esm server.js

/shakespeare/server.js:1

Error: Cannot find module './api/Ajax'

Require stack:

- /shakespeare/server.js

    at Object.<anonymous> (/shakespeare/server.js:1) {

  code: 'MODULE_NOT_FOUND',

  requireStack: [ '/shakespeare/server.js' ]

}

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! shakespeare@1.1.0 start: `NODE_ENV=production node -r esm server.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the shakespeare@1.1.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!    /root/.npm/_logs/2023-03-02T10_33_34_596Z-debug.log

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容