Reputation: 788
I just installed Node.js from Visual Studio installation.
When I tried to call node
on the command prompt, I got this error. I also got this when I tried to do npm init
and npm install
How do I fix this?
Upvotes: 1
Views: 659
Reputation: 910
I encountered this problem on my Windows 10 64-bit computer. From looking at Programs and Features, I saw that I had Node.js and Node.js Chakra installed. I uninstalled Node.js and then downloaded and installed again it from https://nodejs.org/en/download/.
This, however, did not fix the problem. So I uninstalled Node.js Chakra; and when I opened a new command prompt, node and npm were working.
However, I'm not sure if I needed to uninstall and reinstall Node.js or if I only needed to uninstall Chakra. I probably should have uninstalled Chakra first and node and npm might have worked after that.
Upvotes: 1