I entered this line in my laravel project because it was offered as a solution
npm i -g npm@3.10.10
Then when i tried to use npm aga