这是package.json文件 -
{
"name": "bookworm",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node server.js"
},
"dependencies": {
"body-parser": "~1.15.1",
"cookie-parser": "~1.4.3",
"easyimage": "^2.1.0",
"ejs": "~2.5.3",
"express": "~4.13.4",
"hbs": "~4.0.0",
"mongoose": "~4.7.1",
"multer": "^1.2.0",
"nodemailer": "^0.7.1",
"serve-favicon": "~2.3.0"
}
}
在使用npm start命令时,它给出了关于无法找到模块'。'
的错误如果需要,我可以附加任何日志或实际错误消息。请提前帮助和感谢
答案 0 :(得分:-1)
您的代码在某处,您可能正在执行require('.')
任何错误消息都会有所帮助