Dmitri Zaitsev
Dmitri Zaitsev

Reputation: 14046

Npm package installation fails - how to restore the old working version?

It seems that failed installations attempts with npm delete old versions without installing new ones, which is very frustrating.

Can I go back to the old package version that worked?

I get this error:

gulp
-bash: /usr/local/bin/gulp: No such file or directory

But I can see I still have old versions of Gulp installed. Any way I can make the accessible via command line (put it manually in /user/local/bin ?) them until the issue with new version is fixed?

Can't do anything now with gulp!

Thanks!

Upvotes: 2

Views: 2278

Answers (2)

Post Impatica
Post Impatica

Reputation: 16393

this fixed it for me:

ln -s /usr/bin/gulp /usr/local/bin/gulp

Upvotes: 1

Praveen Kumar
Praveen Kumar

Reputation: 483

In Command line give the following find command: sudo find / -name gulp It will ask for superuser password which you should enter.

This will search for the gulp bin file in the system.

If the search is successful then you can copy the bin file to /usr/local/bin

Upvotes: 2

Related Questions