{"action":"created","issue":{"url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/33","repository_url":"https://api.github.com/repos/nathanhleung/install-peerdeps","labels_url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/33/comments","events_url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/33/events","html_url":"https://github.com/nathanhleung/install-peerdeps/issues/33","id":343769934,"node_id":"MDU6SXNzdWUzNDM3Njk5MzQ=","number":33,"title":"Installing peer dependencies on windows","user":{"login":"MFry","id":579618,"node_id":"MDQ6VXNlcjU3OTYxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/579618?v=4","gravatar_id":"","url":"https://api.github.com/users/MFry","html_url":"https://github.com/MFry","followers_url":"https://api.github.com/users/MFry/followers","following_url":"https://api.github.com/users/MFry/following{/other_user}","gists_url":"https://api.github.com/users/MFry/gists{/gist_id}","starred_url":"https://api.github.com/users/MFry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFry/subscriptions","organizations_url":"https://api.github.com/users/MFry/orgs","repos_url":"https://api.github.com/users/MFry/repos","events_url":"https://api.github.com/users/MFry/events{/privacy}","received_events_url":"https://api.github.com/users/MFry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-23T19:45:56Z","updated_at":"2018-08-02T17:53:09Z","closed_at":"2018-08-02T02:07:07Z","author_association":"NONE","body":"When running `install-peerdeps` the install will fail if the packages end in `-0`. \r\n\r\n### Version\r\n\r\n**OS:** Windows 7\r\n\r\n```bash\r\n$ node -v \r\nv8.11.2\r\n\r\n$ npm --version\r\n6.2.0\r\n\r\ninstall-peerdeps v1.8.0\r\n```\r\n\r\n### Reproduce\r\n```bash\r\n$ install-peerdeps -S enzyme-adapter-react-16\r\n\r\nnpm ERR! code ETARGET\r\nnpm ERR! notarget No matching version found for react@16.0.0-0\r\nnpm ERR! notarget In most cases you or one of your dependencies are requesting\r\nnpm ERR! notarget a package version that doesn't exist.\r\n```\r\nThe issue occurs when the  `install-peerdeps` evaluates  \r\ne.x.\r\n`npm install enzyme-adapter-react-16@1.1.1 enzyme@^3.0.0 react@^16.0.0-0 react-dom@^16.0.0-0 --no-save`\r\nwhich will fail, but if you place the `react` and `react-dom` in quotation marks like:\r\n`npm install enzyme-adapter-react-16@1.1.1 enzyme@^3.0.0 \"react@^16.0.0-0\" \"react-dom@^16.0.0-0\" --no-save` \r\nit will run successfully."},"comment":{"url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/comments/410013217","html_url":"https://github.com/nathanhleung/install-peerdeps/issues/33#issuecomment-410013217","issue_url":"https://api.github.com/repos/nathanhleung/install-peerdeps/issues/33","id":410013217,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDAxMzIxNw==","user":{"login":"MFry","id":579618,"node_id":"MDQ6VXNlcjU3OTYxOA==","avatar_url":"https://avatars3.githubusercontent.com/u/579618?v=4","gravatar_id":"","url":"https://api.github.com/users/MFry","html_url":"https://github.com/MFry","followers_url":"https://api.github.com/users/MFry/followers","following_url":"https://api.github.com/users/MFry/following{/other_user}","gists_url":"https://api.github.com/users/MFry/gists{/gist_id}","starred_url":"https://api.github.com/users/MFry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MFry/subscriptions","organizations_url":"https://api.github.com/users/MFry/orgs","repos_url":"https://api.github.com/users/MFry/repos","events_url":"https://api.github.com/users/MFry/events{/privacy}","received_events_url":"https://api.github.com/users/MFry/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T17:53:09Z","updated_at":"2018-08-02T17:53:09Z","author_association":"NONE","body":"@nathanhleung the `-0` is valid semver range and accordingly enzyme devs mentioned\r\n\"The -0 is necessary to allow for prerelease versions...\".\r\n\r\nNot sure if there are additional issues with npm 5.6.0 , but it works as intended on 6.2"}}
{"actor":{"display_login":"MFry"}}