【发布时间】:2017-05-12 16:52:00
【问题描述】:
我无法使用 vscode 运行新创建的 express 项目。它只是失败并显示一条消息:“无法启动程序 'xxxx';设置 'outDir' 属性可能会有所帮助。”
我的主要可执行文件在 bin/www
├── app.js
├── bin
│ └── www
使用 vscode 版本 1.12.1
提交 f6868fce3eeb16663840eb82123369dec6077a9b
日期 2017-05-04T21:40:39.245Z
外壳 1.6.6
渲染器 56.0.2924.87
节点 7.4.0
在 Linux 4.8.0-51-generic #54-Ubuntu SMP 2017 年 4 月 25 日星期二 16:32:21 UTC x86_64 x86_64 x86_64 GNU/Linux
这是我的 launch.json 文件:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/bin/www",
"protocol": "inspector"
},
{
"type": "node",
"request": "attach",
"name": "Attach to Process",
"address": "localhost",
"port": 5858
}
]
}
我能做什么?
【问题讨论】:
标签: express visual-studio-code