{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/cli/issues/548","repository_url":"https://api.github.com/repos/sequelize/cli","labels_url":"https://api.github.com/repos/sequelize/cli/issues/548/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/cli/issues/548/comments","events_url":"https://api.github.com/repos/sequelize/cli/issues/548/events","html_url":"https://github.com/sequelize/cli/issues/548","id":259551282,"number":548,"title":"npx usage lag","user":{"login":"PavelPolyakov","id":839290,"avatar_url":"https://avatars0.githubusercontent.com/u/839290?v=4","gravatar_id":"","url":"https://api.github.com/users/PavelPolyakov","html_url":"https://github.com/PavelPolyakov","followers_url":"https://api.github.com/users/PavelPolyakov/followers","following_url":"https://api.github.com/users/PavelPolyakov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPolyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPolyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPolyakov/subscriptions","organizations_url":"https://api.github.com/users/PavelPolyakov/orgs","repos_url":"https://api.github.com/users/PavelPolyakov/repos","events_url":"https://api.github.com/users/PavelPolyakov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPolyakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-21T16:09:46Z","updated_at":"2018-04-02T17:26:00Z","closed_at":"2017-10-11T15:21:01Z","author_association":"CONTRIBUTOR","body":"## What you are doing?\r\nAs we know, together with `npm 5` update we've received `npx`(https://github.com/zkat/npx), which allows you to run binaries for the modules installed for your project.\r\n\r\nI'm preferring to use this approach, over the one which is stated in the docs:\r\n```\r\nnode_modules/.bin/sequelize init\r\n```\r\n\r\nSo I've tried, it works, but apparently it tries to install something (checks something) each time you call the binary. Here is the video:\r\nhttps://monosnap.com/file/y4ia6TeNBgF9EmHdraMEWNPvRx45jH\r\n\r\n## What do you expect to happen?\r\nI expected it will work without the installation lag.\r\n\r\n## What is actually happening?\r\nAs it is shown in the video.\r\n\r\n__Dialect:__ not important\r\n__Database version:__ not important\r\n__Sequelize CLI version:__ not important\r\n__Sequelize version:__ not important\r\n\r\nI believe it's something connected to the package itself, as other packages are working fine with `npx`. \r\n\r\nRegards,"},"comment":{"url":"https://api.github.com/repos/sequelize/cli/issues/comments/377985385","html_url":"https://github.com/sequelize/cli/issues/548#issuecomment-377985385","issue_url":"https://api.github.com/repos/sequelize/cli/issues/548","id":377985385,"user":{"login":"PavelPolyakov","id":839290,"avatar_url":"https://avatars0.githubusercontent.com/u/839290?v=4","gravatar_id":"","url":"https://api.github.com/users/PavelPolyakov","html_url":"https://github.com/PavelPolyakov","followers_url":"https://api.github.com/users/PavelPolyakov/followers","following_url":"https://api.github.com/users/PavelPolyakov/following{/other_user}","gists_url":"https://api.github.com/users/PavelPolyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelPolyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelPolyakov/subscriptions","organizations_url":"https://api.github.com/users/PavelPolyakov/orgs","repos_url":"https://api.github.com/users/PavelPolyakov/repos","events_url":"https://api.github.com/users/PavelPolyakov/events{/privacy}","received_events_url":"https://api.github.com/users/PavelPolyakov/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T17:26:00Z","updated_at":"2018-04-02T17:26:00Z","author_association":"CONTRIBUTOR","body":"I got back to the issue recently, because I'm using `sequelize-cli` again. And discovered that I was doing it wrong starting from the first video.\r\n\r\nIf I do:\r\n```\r\nnpx sequelize --version\r\n```\r\n\r\neverything works great, without any lag. I was probably confused with the fact that module `sequelize-cli` installs the binary `sequelize`.\r\n\r\nRegards,"}}
{"actor":{"display_login":"PavelPolyakov"}}