jspm / npm

NPM Location Service
19 stars 34 forks source link

Package doesn't install correctly. #142

Closed fa7ad closed 8 years ago

fa7ad commented 8 years ago

I tried to install github-api from npm. The CLI finishes the installation without error, but I get a 404 when I try to load the page in browser. So, I did some digging and the problem seems to be that jspm alters the directory structure when it installs the package.

the package's package.json says

"main": "./dist/components/GitHub.js"

but the jspm installation structure doesn't contain those files screenshot from 2016-07-21 09-44-53

and this how npm structures it screenshot from 2016-07-21 09-46-26

guybedford commented 8 years ago

Try running jspm install npm:github-api -o "{files:null}". The issue is that the entry for dist/* is only treated as a first-level wildcard in jspm while in npm it is treated as a deep wildcard. I've created https://github.com/jspm/npm/issues/143 to track.