Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Cannot read property 'tarball' of undefined, version data absent #130

Closed
laurelnaiad opened this issue Mar 28, 2016 · 2 comments
Closed

Comments

@laurelnaiad
Copy link

Not sure why, but this error just began on my project out of seemingly thin air.

warn Error on download for npm:ansi-styles
     TypeError: Cannot read property 'tarball' of undefined
         at NPMLocation.download (/Users/dmaddox/Documents/_ws/myproj/node_modules/jspm-npm/lib/npm.js:338:45)
         at /Users/dmaddox/Documents/_ws/myproj/node_modules/jspm/lib/registry.js:117:30
         at lib$rsvp$$internal$$tryCatch (/Users/dmaddox/Documents/_ws/myproj/node_modules/rsvp/dist/rsvp.js:1036:16)
         at lib$rsvp$$internal$$invokeCallback (/Users/dmaddox/Documents/_ws/myproj/node_modules/rsvp/dist/rsvp.js:1048:17)
         at /Users/dmaddox/Documents/_ws/myproj/node_modules/rsvp/dist/rsvp.js:331:11
         at lib$rsvp$asap$$flush (/Users/dmaddox/Documents/_ws/myproj/node_modules/rsvp/dist/rsvp.js:1198:9)
         at _combinedTickCallback (node.js:376:9)
         at process._tickCallback (node.js:407:11)

ansi-styles is the first package that my build process actually finds it wants to download, so I guess I might also fail on package 2, 3 etc. as well.

The parameters coming in to the download function are:

  • repo: 'ansi-styles'
  • version: '^2.1.0'
  • hash: ""
  • versionData: { }

This was first reported to me around 1:15 pacific time on a build that seemed fine yesterday and I believe was fine earlier today as well.

???

@laurelnaiad
Copy link
Author

By the way, the call out of registry.js on line 117 seems to be passing:

self: {"ui":{"logLevel":3,"format":{}},"name":"npm","tmpDir":"/Users/dmaddox/.jspm/npm-cache","remote":"https://npm.jspm.io","strictSSL":true,"alwaysAuth":false,"versionString":"[email protected]"}
args: {"0":"ansi-styles","1":"^2.1.0","2":"","3":{},"4":"/Users/dmaddox/.jspm/packages/npm/ansi-styles@^2.1.0"}

which seems strange. It really should be looking to npm, not my cache. I already cleaned my cache, fwiw.

@laurelnaiad
Copy link
Author

This was actually chalk/ansi-styles#15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant