我的nodejs服务器无法找到该模块,除非我明确说明我正在寻找index.js文件。例如:
当我不指定index.js时:
当我确实指定index.js时(它在./api/index.js中找不到index.js)
这是我的package.json:
我使用babel-node解决了这个问题