Specify the absolute path to the product with the Path attribute of the launch.json file. code example
Example: why always appear errors in vscode while importing the library
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "./app.js"
}
]
}