Visual Studio Code "Failed to install typing files for JavaScript ..."
I am new to node.js and am trying to learn it with Visual Studio Code as my editor (1.13.1).
With the .js file open, I see:
Failed to install typing files for JavaScript language functions. Make sure NPM is installed or "typescript.npm" is configured in user preferences
I have npm installed:
C:\>npm --help
Usage: npm <command>
How can I correct the message?
I can add 'typescript.npm' to my user preferences, but I don't know what value this will give. Can you please give an example?
+3
source to share
1 answer
It looks like there is an explanation for your case. So it should be the full path to npm
.
In my case, it is C:\Program Files\nodejs\npm.cmd
.
+1
source to share