{"action":"closed","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/348","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/348/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/348/events","html_url":"https://github.com/jspm/jspm-cli/issues/348","id":53262152,"number":348,"title":"jspm install fails (curDeps is undefined)","user":{"login":"theefer","id":36964,"avatar_url":"https://avatars.githubusercontent.com/u/36964?v=3","gravatar_id":"","url":"https://api.github.com/users/theefer","html_url":"https://github.com/theefer","followers_url":"https://api.github.com/users/theefer/followers","following_url":"https://api.github.com/users/theefer/following{/other_user}","gists_url":"https://api.github.com/users/theefer/gists{/gist_id}","starred_url":"https://api.github.com/users/theefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theefer/subscriptions","organizations_url":"https://api.github.com/users/theefer/orgs","repos_url":"https://api.github.com/users/theefer/repos","events_url":"https://api.github.com/users/theefer/events{/privacy}","received_events_url":"https://api.github.com/users/theefer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-02T16:38:07Z","updated_at":"2015-01-02T16:48:54Z","closed_at":"2015-01-02T16:48:54Z","body":"When running `jspm install` with 0.10.1, I get:\r\n\r\n```\r\nerr  TypeError: Cannot read property 'length' of undefined\r\n         at /home/seb/work/media-service/kahuna/node_modules/jspm/lib/package.js:602:79\r\n         at $$$internal$$tryCatch (/home/seb/work/media-service/kahuna/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:490:16)\r\n         at $$$internal$$invokeCallback (/home/seb/work/media-service/kahuna/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:502:17)\r\n         at $$$internal$$publish (/home/seb/work/media-service/kahuna/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:473:11)\r\n         at Object.$$rsvp$asap$$flush [as _onImmediate] (/home/seb/work/media-service/kahuna/node_modules/jspm/node_modules/rsvp/dist/rsvp.js:1581:9)\r\n         at processImmediate [as _immediateCallback] (timers.js:345:15)\r\n```\r\n\r\ncaused by `curDeps` being `undefined` at:\r\n\r\n``` javascript\r\n    // if we gained a new dependency, download it\r\n    if (pjson.dependencies && Object.keys(pjson.dependencies).length > curDeps.length) {\r\n```\r\n\r\nFrom a cursory look at the lines above, this is caused by `endpoint.build` being `undefined`, which means `curDeps` never gets initialised. I'm lacking a bit of context around this code to provide a patch I'm afraid.\r\n\r\nThis is with an existing project I'm trying to upgrade to the latest jspm."}}