Forum Discussion
I am getting error when running the command
npm install -g lithium-sdk
See attached screenshot for logs. I have installed all the required things. Any help would be appreciated.
It looks as if the Windows Build Tools haven't installed properly. Try running the following command in PowerShell again as administrator
npm install --production windows-build-tools
It will take a while for the build tools to install, once complete run
npm install -g lithium-sdk
Which should fix the issue.
- VikasB7 years agoBoss
I followed the same steps you mentioned in this thread.
I have tried it multiple time on Powershell and cmd both(as administrator). Even reinstalled all the required things. But every time I am getting the same log.
- RobertT7 years agoBoss
VikasB the log indicates a problem with a visual studio dependency using MSBuild.exe - typically the windows build tools command installs this, however you may have multiple versions installed if you already have VisualStudio on your machine.
Can you confirm what Windows version you are running (winver from the search bar) and what versions of VisualStudio are showing installed on your machine from Settings > Apps
I'll take a look and see if I can replicate the problem here.
- triSolutionFuse7 years agoMentor
If you have trouble installing the windows build tools and python from above, you can try locking the version to 1.3.2, by running this command:
npm install --global --production windows-build-tools@1.3.2
Version after this from what i gathered are buggy and likely not fixed, which causes some slow installs or obscure errors. THis worked for me. Enjoy!
Related Content
- 7 years ago