I am trying to install web3 using command
npm install --save firstname.lastname@example.org
However, it is failing with error :
verbose node v8.9.1
verbose npm v4.6.1
error code 128
error Command failed: git -c core.longpaths=true rev-list -n1 browserifyCompatible
error fatal: ambiguous argument 'browserifyCompatible': unknown revision or path not in the working tree.
error Use '--' to separate paths from revisions, like this:
error 'git <command> [<revision>...] -- [<file>...]'
After following a suggestion in this thread, npm got updated but the npm installed with node was still being used. SO fixed that using this. Now, the error is showing as :
794 verbose stack Error: Command failed: C:\Program Files\Git\cmd\git.EXE clone --depth=1 -q -b browserifyCompatible git://github.com/frozeman/WebSocket-Node.git C:\Users\<USER>\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-3198c7e8 --config core.longpaths=true
794 verbose stack warning: templates not found in C:\Users\<USER>\AppData\Local\Temp\pacote-git-template-tmp\git-clone-f63c9472
794 verbose stack warning: Could not find remote branch browserifyCompatible to clone.
794 verbose stack fatal: Remote branch browserifyCompatible not found in upstream origin
Versions : email@example.com, firstname.lastname@example.org , git version 2.19.1
Yarn gives similar error. I tried tracing npm logs, the error occurs while looking up for branch named "browserifyCompatible" for websocket dependency which seems a valid branch.
I've tried starting cmd with admin privileges and executing from git bash and reinstaling git, node, npm. Any inputs will be highly appreciated.