index.js:
const port = process.env.PORT || 3000;
服务器包.json:
"start": "node index.js",
"server": "nodemon index.js",
"client": "npm start --prefix client",
"dev": "concurrently \"npm run server\" \"npm run client\""
},
客户端包.json:
"proxy": "http://localhost:5000",
我开始npm run dev
知道问题可能出在哪里吗?
错误:
Error: Cannot find module '.../index.js'