Skip to content
This repository was archived by the owner on May 9, 2019. It is now read-only.
This repository was archived by the owner on May 9, 2019. It is now read-only.

npmjs.org tells me that left-pad is not available (404 page) #4

Closed

Description

@silkentrance

When building projects on travis, or when searching for left-pad on npmjs.com, both will report that the package cannot be found.

Here is an excerpt from the travis build log

npm ERR! Linux 3.13.0-40-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v4.2.2/bin/node" "/home/travis/.nvm/versions/node/v4.2.2/bin/npm" "install"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/left-pad
npm ERR! 404 
npm ERR! 404 'left-pad' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'line-numbers'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/coldrye-es/pingo/npm-debug.log
make: *** [deps] Error 1

And here is the standard npmjs.com error page https://www.npmjs.com/package/left-pad

However, if I remove left-pad from my local npm cache and then reinstall it using npm it will happily install left-pad@0.0.4.

Activity

  1. tonytamps commented on Mar 22, 2016

    @tonytamps

    according to https://registry.npmjs.org/left-pad

    unpublished: {
      name: "azer",
      time: "2016-03-22T21:27:15.696Z",
      ...
    }
    

    It's causing Babel to fail installation

  2. changed the title [-]npmjs.org tells me that left-pad is not available[/-] [+]npmjs.org tells me that left-pad is not available (404 page)[/+] on Mar 22, 2016
  3. silkentrance commented on Mar 22, 2016

    @silkentrance
    Author

    @tonytamps thanks for pointing this out

    @azer why? this will break babel based builds on travis...

  4. Baggz commented on Mar 22, 2016

    @Baggz

    I'm having the same issue.

  5. jagthedrummer commented on Mar 22, 2016

    @jagthedrummer

    Yep, I'm having the same problem.

  6. Baggz commented on Mar 22, 2016

    @Baggz

    Seems like https://www.npmjs.com/package/left-pad is up again, but no versions published.

    image

  7. OllieJennings commented on Mar 22, 2016

    @OllieJennings

    @tonytamps it seems like the registry has updated weirdly

    {
      "_id": "left-pad",
      "_rev": "12-29db2b53680e1c66ee1acc89502fe1b0",
      "name": "left-pad",
      "time": {
        "modified": "2016-03-22T21:42:18.002Z",
        "created": "2014-03-14T09:09:20.762Z",
        "0.0.0": "2014-03-14T09:09:20.762Z",
        "0.0.1": "2014-08-14T03:31:03.146Z",
        "0.0.2": "2014-08-15T07:13:09.056Z",
        "0.0.3": "2014-08-15T07:14:44.360Z",
        "0.0.4": "2015-05-20T04:04:04.473Z",
        "1.0.0": "2016-03-22T21:42:18.002Z",
        "unpublished": {
          "name": "westlac",
          "time": "2016-03-22T21:47:25.250Z",
          "tags": {
            "latest": "1.0.0"
         },
    
    
  8. camwest commented on Mar 22, 2016

    @camwest
    Contributor

    Yeah I published a 1.0.0 to try to resolve the dependency. It looks like someone (not me) completely removed left-pad from the npm registry

  9. jagthedrummer commented on Mar 22, 2016

    @jagthedrummer

    Is there a way to get all the old versions back again? In my project it's at the end of a fairly long dependency chain...

  10. camwest commented on Mar 22, 2016

    @camwest
    Contributor

    @azer would know better why it was unpublished (assuming he was the one to unpublish it)

  11. jeffrifwald commented on Mar 22, 2016

    @jeffrifwald

    @camwest The package line-numbers is pinned to 0.0.3 specifically, so you'll need to publish that version or someone will have to summon the creator of line-numbers.

  12. silkentrance commented on Mar 22, 2016

    @silkentrance
    Author

    Just tried replacing the travis version of npm which is fairly old by a the latest and see what it will do

    npm ERR! Linux 3.13.0-40-generic
    npm ERR! argv "/home/travis/.nvm/versions/node/v4.2.2/bin/node" "/home/travis/.nvm/versions/node/v4.2.2/bin/npm" "install"
    npm ERR! node v4.2.2
    npm ERR! npm  v3.8.2
    npm ERR! No compatible version found: left-pad@0.0.3
    npm ERR! Valid install targets:
    npm ERR! 0.0.9
    npm ERR! 
    npm ERR! 
    npm ERR! If you need help, you may report this error at:
    npm ERR!     <https://github.com/npm/npm/issues>
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/travis/build/coldrye-es/pingo/npm-debug.log
    make: *** [deps] Error 1
    

    It will now tell me that there is a version 0.0.9... weird.

    Will not try to install that one, though, with all the malware going around...

  13. roughpandaz commented on Mar 22, 2016

    @roughpandaz

    +1 same issue here.

  14. OllieJennings commented on Mar 22, 2016

    @OllieJennings

    @RongxinZhang try and use the new GitHub reactions instead of the old +1 :)

  15. olih commented on Mar 22, 2016

    @olih

    +1 same issue

  16. 167 remaining items

  17. thesoftwarejedi commented on Mar 23, 2016

    @thesoftwarejedi

    This is a great example of why decentralizing the package hosting can solve the problem. If package hosting were done via a technology such as zeronet and torrents, this could be entirely avoided.

    I'll be looking into this in the coming months.

  18. stevemao commented on Mar 23, 2016

    @stevemao
    Member

    @azer transfer the module to me please 😄 since I'm the only other author of the module 😀

  19. stevemao commented on Mar 23, 2016

    @stevemao
    Member
  20. azer commented on Mar 23, 2016

    @azer
    Collaborator

    @stevemao is the new owner of the module, not sure how he can take the npm ownership.

  21. stevemao commented on Mar 23, 2016

    @stevemao
    Member

    Thanks @azer 👍

  22. xzer commented on Mar 23, 2016

    @xzer

    Thanks @azer, you did right thing which makes us understand how the npm is dangerous to us, open source developers. You did perfect warning to all the world to tell us do not trust the bullshit npm any more.

    To be honest, great work!

  23. isaacs commented on Mar 23, 2016

    @isaacs

    @KoryNunn @SomeoneWeird @zerkms @drewhamlett If you run npm as root, it'll process.setuid() to a nobody user. https://docs.npmjs.com/misc/scripts#user

  24. KoryNunn commented on Mar 23, 2016

    @KoryNunn

    @isaacs that is really good. There are however many other malicious things that can be done without sudo, like grabbing private keys.

  25. f commented on Mar 23, 2016

    @f
  26. winterbe commented on Mar 23, 2016

    @winterbe

    I don't wanna imagine what happens when tomorrow someone trademarks Lodash and wreaks havoc. 💥

    Maybe it's time to add an exclusion clause to Open Source licenses for companies like Kik?

    BTW: Ask one of 80 million germans about Kik and they'll recognize a completely different company.

  27. azer commented on Mar 23, 2016

    @azer
    Collaborator

    @f teşekkür ederim anlayışın ve desteğin için Fatih :)

  28. tjacobs commented on Mar 23, 2016

    @tjacobs

    This is why Docker exists. Because dependency management is trouble. Pack it all into one package. Do we need a Docker for JS?

  29. locked and limited conversation to collaborators on Mar 23, 2016
  30. stevemao commented on May 1, 2016

    @stevemao
    Member

    1.1.0 is released :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions