{"action":"created","issue":{"url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/239","labels_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/239/comments","events_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/239/events","html_url":"https://github.com/DefinitelyTyped/tsd/issues/239","id":116085825,"number":239,"title":"npm install tsd locally","user":{"login":"micheledisalvatore","id":3386081,"avatar_url":"https://avatars.githubusercontent.com/u/3386081?v=3","gravatar_id":"","url":"https://api.github.com/users/micheledisalvatore","html_url":"https://github.com/micheledisalvatore","followers_url":"https://api.github.com/users/micheledisalvatore/followers","following_url":"https://api.github.com/users/micheledisalvatore/following{/other_user}","gists_url":"https://api.github.com/users/micheledisalvatore/gists{/gist_id}","starred_url":"https://api.github.com/users/micheledisalvatore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheledisalvatore/subscriptions","organizations_url":"https://api.github.com/users/micheledisalvatore/orgs","repos_url":"https://api.github.com/users/micheledisalvatore/repos","events_url":"https://api.github.com/users/micheledisalvatore/events{/privacy}","received_events_url":"https://api.github.com/users/micheledisalvatore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T11:11:40Z","updated_at":"2015-11-19T16:25:15Z","closed_at":"2015-11-18T16:18:29Z","body":"Hi guys, \r\nI'd like to use tsd as project dependency, not as global. \r\nInstalling it as local, it doesn't work.\r\n\r\nAny idea? \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/comments/158108152","html_url":"https://github.com/DefinitelyTyped/tsd/issues/239#issuecomment-158108152","issue_url":"https://api.github.com/repos/DefinitelyTyped/tsd/issues/239","id":158108152,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T16:25:15Z","updated_at":"2015-11-19T16:25:15Z","body":"To be honest, you lost me somewhere there. From your snippet, it's working exactly how it's meant to be when you install without `--global`. What is it that's not working properly? \r\n\r\n```\r\n➜  tmp  tsd\r\nzsh: command not found: tsd\r\n➜  tmp  node ./node_modules/.bin/tsd\r\n\r\n>> tsd 0.6.5\r\n```\r\n\r\nI think you might be confusing a local installation of a module with a global installation. If you want it available in your terminal as a command, you have to install it with `npm install tsd --global`. Otherwise, it's a local dependency and is used as such."}}