admin管理员组文章数量:1125791
I'm getting the following error when I try to open a dev container in VS 2022:
Failed to change target system to '[Dev Container]': Unable to find 'npm'. Please install it and try again.
This is the .devcontainer/devcontainer.json
file:
{
"name": "CPP dev container",
"image": "link_to_image",
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cmake-tools",
"llvm-vs-code-extensions.vscode-clangd",
"twxs.cmake",
"xaver.clang-format",
"ms-vscode.cpptools"
]
}
}
}
It works all fine in VS Code, but I also want it to work with Visual Studio.
These are the versions I'm using:
- Docker version 27.2.1-rd, build cc0ee3e
- Microsoft Visual Studio Professional 2022 (64-bit) - Preview, Version 17.13.0 Preview 2.0
I tried to include npm
in the image and to make sure npm
is installed on my Windows 11 laptop as well.
版权声明:本文标题:docker - Visual Studio unable to find npm and fails change of target system to dev container - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736675252a1947148.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论