Skip to content

Commit

Permalink
print more consumer friendly error, when there is no ./package.json. fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstarkov committed Mar 22, 2016
1 parent 8f3e8f8 commit 443d34a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cmd/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function installCmd (input, flags) {

return readPkgUp()
.then(_ => { pkg = _ })
.then(_ => _ || Promise.reject("there is no './package.json'"))
.then(_ => updateContext(pkg.path))
.then(_ => install())
.then(_ => linkPeers(pkg, ctx.store, ctx.installs))
Expand Down

0 comments on commit 443d34a

Please sign in to comment.