Npm Please try using this command again as root/administrator

后端 未结 30 878
旧巷少年郎
旧巷少年郎 2020-12-02 06:38

I\'ve been desperately trying to install modules using node.js but it always fails getting packages with npm.

I logged in as Administrator and used powershell/cmd wi

30条回答
  •  星月不相逢
    2020-12-02 06:46

    Try following steps

    1. Run this command on Terminal or CMD - npm cache clean

    2. Go to this folder on windows %APPDATA%\npm-cache And delete folder which you want to install module (Ex:- laravel-elixir) or if you are using PowerShell, $env:APPDATA\npm-cache

    3. Then Run your command EX:- npm install laravel-elixir

提交回复
热议问题