geelen / jspm-loader-jsx

A hot-reloading JSX plugin for JSPM
21 stars 2 forks source link

Weird installation bug #4

Closed geelen closed 9 years ago

geelen commented 9 years ago

This is for @guybedford:

> jspm install jsx=npm:jspm-loader-jsx  ~/src/projects/glenmaddern.com • master@b161604 ✗
     Looking up npm:jspm-loader-jsx
     Updating registry cache...
     Looking up npm:react
     Looking up npm:pascal-case
     Looking up npm:camel-case
     Looking up npm:upper-case-first
     Looking up github:gaearon/react-hot-api%400.4.3
     Looking up github:jspm/nodelibs-path%40%5E0.1.0
     Looking up npm:envify
     Looking up npm:through
     Looking up npm:jstransform
     Looking up npm:upper-case
     Looking up npm:sentence-case
     Looking up npm:base62
     Looking up npm:esprima-fb
     Looking up npm:source-map
     Looking up github:jspm/nodelibs-buffer
     Looking up github:jspm/nodelibs-process

warn Error on lookup for github:gaearon/react-hot-api%400.4.3, retrying (1).
     fatal: unable to access 'gaearon/react-hot-api%400.4.3.git/': The requested URL returned error: 400

warn Error on lookup for github:jspm/nodelibs-path%40%5E0.1.0, retrying (1).
     fatal: unable to access 'jspm/nodelibs-path%40%5E0.1.0.git/': The requested URL returned error: 400

     Looking up github:jspm/nodelibs-stream
     Looking up npm:lower-case
     Looking up github:jspm/nodelibs-fs

warn Error on lookup for github:gaearon/react-hot-api%400.4.3, retrying (2).
     fatal: unable to access 'gaearon/react-hot-api%400.4.3.git/': The requested URL returned error: 400

     Looking up npm:buffer
     Looking up npm:amdefine
     Looking up npm:process

warn Error on lookup for github:jspm/nodelibs-path%40%5E0.1.0, retrying (2).
     fatal: unable to access 'jspm/nodelibs-path%40%5E0.1.0.git/': The requested URL returned error: 400

     Looking up npm:base64-js
     Looking up npm:ieee754
     Looking up npm:is-array
     Looking up npm:stream-browserify
     Looking up npm:inherits
     Looking up npm:readable-stream
     Looking up npm:core-util-is
     Looking up npm:isarray
     Looking up npm:string_decoder
     Looking up github:jspm/nodelibs-path

warn Error on lookup for github:gaearon/react-hot-api%400.4.3, retrying (3).
     fatal: unable to access 'gaearon/react-hot-api%400.4.3.git/': The requested URL returned error: 400

warn Error on lookup for github:jspm/nodelibs-path%40%5E0.1.0, retrying (3).
     fatal: unable to access 'jspm/nodelibs-path%40%5E0.1.0.git/': The requested URL returned error: 400

     Looking up github:jspm/nodelibs-events
     Looking up github:jspm/nodelibs-util
     Looking up github:jspm/nodelibs-module
     Looking up npm:path-browserify

warn Error on lookup for github:jspm/nodelibs-path%40%5E0.1.0
     fatal: unable to access 'jspm/nodelibs-path%40%5E0.1.0.git/': The requested URL returned error: 400

err  Error looking up github:jspm/nodelibs-path%40%5E0.1.0.

Failing with jspm@v0.15.7. Never seen anything like this before...

guybedford commented 9 years ago

@geelen I guess that would be because your dependencies are percent-encoded in https://registry.npmjs.org/jspm-loader-jsx. Were they definitely published correctly? This could be some strange formatting done by npm?

geelen commented 9 years ago

This suuuuper spooky. I just tried publishing again and the same thing happened. I'm just doing a normal npm publish... I can't find anyone else having this problem ᐵ

geelen commented 9 years ago

Ok so it's probably because I upgraded my local npm a few days ago. I'm now running 2.13.0. And it's only affecting the github dependencies. Something about trying to publish a registry: jspm project with Github dependencies to npm. Am I doing something wrong?

p.s. thanks for the link to https://registry.npmjs.org/jspm-loader-jsx, I didn't know about that.

guybedford commented 9 years ago

Perhaps npm have blocked jspm-style dependencies from being published (and for good reason actually).

Try publishing the dependencies under the jspm property (jspm.dependencies).

giltig commented 9 years ago

Installation still fails...

guybedford commented 9 years ago

I see version 0.0.5 as the latest still using the dependencies base-level object which shows up as percent-encoded hence doesn't work. Which version did you publish the dependencies as jspm.dependencies for?

jcw commented 9 years ago

I get this error with jspm@0.15.7:

err  Error looking up github:gaearon/react-hot-api%40%5E0.4.5.

Happened while doing jspm install jsx=npm:jspm-loader-jsx for the first time.

peteruithoven commented 9 years ago

Same with version 0.16.0-beta.3. Installing it from github doesn't give the error, but caused by a lack of JSX/React experience I can't verify if the plugin works.

$ jspm install jsx=github:geelen/jspm-loader-jsx
geelen commented 9 years ago

Sorry, finally got around to pushing this fix. v0.0.7 is now released using jspm.dependencies and that works fine!