Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

后端 未结 3 2844
别那么骄傲
别那么骄傲 2020-12-16 20:30

i am trying to install all dependencies using npm install command, but while installing it i am getting error like below :

ling source file ..\\         


        
相关标签:
3条回答
  • 2020-12-16 21:22

    Run below command in cmd with administrator priviledges:

    npm install --global --production windows-build-tools --vs2017
    
    0 讨论(0)
  • 2020-12-16 21:23

    None of these answers worked for me on Windows 10 and Node 13. I had to uninstall Visual Studio and Build Tools, and uninstall Node 13. Then, I deleted npm and npm-cache from Roaming, before reinstalling Node 11.6 and choosing to install Chocolately. It worked for me thereafter.

    0 讨论(0)
  • 2020-12-16 21:24
    1. run: npm cache clean --force
    2. delete node_modules
    3. delete packagelock.json and yarn.lock(if have)
    4. run: npm install
    0 讨论(0)
提交回复
热议问题