Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing Underscore typings

I am trying to install Underscore typings but getting error

Unable to find "underscore" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry

I have tried different switches based on my research and solutions provided by others as you can see in image.

enter image description here Please let me know if I am doing something wrong.

like image 377
Darshan Puranik Avatar asked May 24 '16 05:05

Darshan Puranik


3 Answers

The core issue was a permission issue on my Mac. Your user account need to own your npm install directory.

Then you can run the command:

typings install dt~underscore --global --save

You should not see any more errors.

like image 157
Darshan Puranik Avatar answered Oct 17 '22 09:10

Darshan Puranik


Below command is works for me,

typings install dt~underscore --global --save

Reference - GitHub Link

like image 30
Mahipat Avatar answered Oct 17 '22 09:10

Mahipat


This is more recent as of April 2017

npm install --save @types/underscore

like image 1
code5 Avatar answered Oct 17 '22 09:10

code5