1 回答

TA貢獻(xiàn)1799條經(jīng)驗(yàn) 獲得超6個(gè)贊
使用這個(gè) package.json
{
"name": "node-express",
"version": "1.0.0",
"description": "Node Express Examples",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js"
},
"author": "Shilpa Kancharla",
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"http": "0.0.0",
"morgan": "^1.10.0"
},
"devDependencies": {
"nodemon": "^2.0.2"
}
}
現(xiàn)在通過運(yùn)行以下命令運(yùn)行和更新節(jié)點(diǎn)模塊
npm i or npm install
您現(xiàn)在可以通過運(yùn)行以下命令開始
npm start
添加回答
舉報(bào)