LinusU / secure-remote-password

A modern SRP implementation for Node.js and Web Browsers
101 stars 22 forks source link

command on readme page gives npm error #8

Closed simbo1905 closed 6 years ago

simbo1905 commented 6 years ago

The readme says to run:

npm install --save secure-remote-password

but that gives an error:

npm ERR! code ENOSELF npm ERR! Refusing to install package with name "secure-remote-password" under a package npm ERR! also called "secure-remote-password". Did you name your project the same npm ERR! as the dependency you're installing? npm ERR! npm ERR! For more information, see: npm ERR! https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm

npm ERR! A complete log of this run can be found in: npm ERR! /Users/simon/.npm/_logs/2017-11-12T07_01_22_049Z-debug.log

alexgoldstone commented 6 years ago

Looks like you have created a project called secure-remote-password which clashes with this package.

I get the same as you if I create a directory called secure-remote-password and npm init inside that directory then try to run npm install --save secure-remote-password.

All is fine if I create a directory called srp-test and npm init inside that directory then try to run npm install --save secure-remote-password.

LinusU commented 6 years ago

Thanks @alexgoldstone for the great explanation!