I try to debug the yoma generator in the studio visual code, but it keeps telling me that it is cannot launch programm d:\repos\generator\node_modules\.bin\yo'; enabling source maps might help
every time I press F5
My VS Code config The file is as follows:
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch app/index.js",
"type": "node",
"program": "node_modules/.bin/yo",
"args": [ "design" ],
"cwd": ".",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": false,
"outDir": null
}
]
}
And my .json package is something like this:
{
"name": "generator-design",
"version": "0.1.0",
"main": "app/index.js",
"files": [
"generators/app"
],
"dependencies": {
"yeoman-generator": "^0.20.3",
"yosay": "^1.0.5",
"chalk": "^1.1.1",
"uuid": "^2.0.1",
"yeoman-option-or-prompt": "^1.0.2"
}
}
The path is correct, and the yeomen works, because when I copy it on the command line, Yoman welcomes me and asks which generator I would like to run. In addition, the generator works fine if I select it.
- VS code version
0.9.2
- OS is Windows
8.1
- Yeoman ist
latest
What am I missing here?
, , .js y VS, VS (, , , , )
- , program 'd:\foo\bar\yo' does not exist