0
我有一個奇怪的問題,突然nodemon停止顯示控制檯日誌。nodeJS - nodemon控制檯日誌停止工作
我使用npm run dev
命令運行的NodeJS應用程序,我package.json
看起來像下面,
{
"name": "loginform",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",
"dev": "nodemon app.js"
},
"dependencies": {
"async": "^2.1.4",
"body-parser": "^1.15.2",
"body-parser-xml": "^1.1.0",
"cassandra-driver": "^3.1.6",
"connect-flash": "^0.1.1",
"ejs": "^2.0.6",
"es6-template-strings": "^2.0.1",
"express": "^4.14.0",
"express-rate-limit": "^2.6.0",
"express-session": "^1.10.1",
"log-buffer": "0.0.3",
"mongodb": "^2.2.25",
"mongoose": "^4.7.0",
"nodemailer": "^0.7.1",
"passport": "^0.2.1",
"passport-facebook": "^1.0.3",
"passport-local": "^1.0.0",
"passport-twitter": "^1.0.2",
"qs": "^6.3.0",
"sweetalert2": "^6.5.5",
"trim": "0.0.1",
"url-pattern": "^1.0.3",
"uuid": "^3.0.1",
"xml2js": "^0.4.17"
},
"devDependencies": {
"nodemon": "^1.11.0"
}
}
我的工作,但突然停止工作,我能找出原因,雖然我之間已經安裝了pm2但未卸載,這是可能打破日誌記錄的原因嗎?
更新
這是我的控制檯的樣子,沒有日誌可言。
任何人都可以提供解決方案嗎?
謝謝。
是的,我在我的問題提到它。 – iphonic
您實際上編寫了'npm dev run',請更正它。 – loelsonk
'npm dev run'永遠不會工作 – loelsonk