Could not install typings files... in VS Code, with Bash on Ubuntu on Windows

Viewed 583

I'm trying to use Visual Studio Code with Bash on Ubuntu on Windows. I have VS Code installed on Windows, but otherwise use Bash exclusively for my JavaScript development workflow.

I have node and npm installed on Bash (via apt-get), however, I do not have node and npm also on Windows to avoid duplication. In my VS Code settings, I have configured the integrated shell to use Bash:

"terminal.integrated.shell.windows": "C:\\windows\\Sysnative\\bash.exe"

The integrated shell works fine, and node and npm are both accessible. However, when I launch VS Code on my project, I get the warning:

Could not install typings files for JavaScript langauge features. Please ensure that NPM is installed or configure 'typescript.npm' in your user settings

I have tried both the following settings, neither of which work:

"typescript.npm": "C:\\windows\\Sysnative\\bash.exe"
"typescript.npm": "C:\\windows\\Sysnative\\bash.exe -c \"npm\""

Is it possible to get VS Code to install typings files via the npm that is installed on Bash?

1 Answers
Related