npm install does nothing - how make it work?

前端 未结 5 1591
萌比男神i
萌比男神i 2021-01-17 15:07

I have a trouble with npm and I haven\'t found solution in web.

Today I wanted to start my adventure with nodejs, npm, bower etc.

I use Windows 8.1.

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 15:49

    Thetoast found solution that worked for me.

    If you have the same problem check the value of your TEMP environment variable. To do so run nodejs' command window and type

    echo %TEMP%
    

    You should receive path to a single directory. If you receive multiple directory (as I did - I received C:\Users\\AppData\Local\Temp;c:\Users\\AppData\Local\Atlassian\SourceTree\git_local\bin\) it means that this might by the cause of the problem. You can fix it by typing

    SET TEMP=
    

    where might by the first path (before semicolon, that means C:\Users\\AppData\Local\Temp in my case).

提交回复
热议问题