Closed smmoosavi closed 7 years ago
I found that this error occurs when I use sinopia as proxy for npm
cat .npmrc
registry=http://localhost:4873/
@smmoosavi - Can you compare your how2 version in both cases, and if identical, compare the versions of its dependencies when installed with and without?
how2 --version
how2 version 1.1.0 - by Claudio Santini
Please give exact reproduction steps so that we could test this, and include OS type and version, node version, and npm version.
If you want to reproduce error:
$ npm i how2
$ npm i sinopia
$ cat ~/.npmrc # is empty
$ ./node_modules/.bin/how2 -l python list length
# no error until this line
$ npm set registry http://localhost:4873
$ cat ~/.npmrc
registry=http://localhost:4873
$./node_modules/.bin/sinopia
$ ./node_modules/.bin/how2 -l python list length
# errors TypeError: Invalid Version: null ...
$ echo '' > ~/.npmrc
./node_modules/.bin/how2 -l python list length
# every thing is ok
Ubuntu 14.04 LTS npm 3.3.12 node v5.1.0
Probably an issue with npm-latest, originating in this line.
Could you please run:
npm i npm-latest
echo '' > ~/.npmrc
./node_modules/.bin/npm-latest how2
echo 'registry=http://localhost:4873' > ~/.npmrc
./node_modules/.bin/sinopia
./node_modules/.bin/npm-latest how2
?
yes, you are right. with sinopia
how2:
latest: null
last updated: null
with default registry
how2:
latest: 1.1.0
last updated: Mon Mar 07 2016 23:53:18 GMT+0330 (IRST)
author: Claudio Santini
repo: https://github.com/santinic/how2
description: Uses Google and Stackoverflow to find how to do things on a Unix commmand line
every time I press space following error shown: