Git Product home page Git Product logo

Comments (7)

smmoosavi avatar smmoosavi commented on July 20, 2024

I found that this error occurs when I use sinopia as proxy for npm

cat .npmrc
registry=http://localhost:4873/

from how2.

danyshaanan avatar danyshaanan commented on July 20, 2024

@smmoosavi - Can you compare your how2 version in both cases, and if identical, compare the versions of its dependencies when installed with and without?

from how2.

smmoosavi avatar smmoosavi commented on July 20, 2024
how2 --version
how2 version 1.1.0 - by Claudio Santini

from how2.

danyshaanan avatar danyshaanan commented on July 20, 2024

Please give exact reproduction steps so that we could test this, and include OS type and version, node version, and npm version.

from how2.

smmoosavi avatar smmoosavi commented on July 20, 2024

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

from how2.

danyshaanan avatar danyshaanan commented on July 20, 2024

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

?

from how2.

smmoosavi avatar smmoosavi commented on July 20, 2024

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

from how2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.