{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10794","labels_url":"https://api.github.com/repos/npm/npm/issues/10794/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10794/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10794/events","html_url":"https://github.com/npm/npm/issues/10794","id":121777098,"number":10794,"title":"Relative path specified dependencies are being installed as dev, without sub dev-depends","user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-11T19:35:00Z","updated_at":"2015-12-15T18:40:10Z","closed_at":"2015-12-15T18:40:10Z","body":"Hi all,\r\n\r\nI tried to find an open issue describing the problem I'm seeing and was unable to.  I have one main npm package and a few smaller npm packages that demonstrate how that package can be used.\r\n\r\nThe folder structure looks like this:\r\n\r\n```\r\nmain/package.json\r\nexamples/a/package.json\r\nexamples/b/package.json\r\nexamples/c/package.json\r\n```\r\n\r\nEach of the example package.json files looks roughly like this:\r\n\r\n```json\r\n{\r\n  \"name\": \"example-a\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"...\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"prepublish\": \"browserify\"\r\n  },\r\n  \"author\": \"...\",\r\n  \"license\": \"BSD-3-Clause\",\r\n  \"dependencies\": {\r\n    \"main\": \"file:../../main\",\r\n  },\r\n  \"devDependencies\": {\r\n    \"browserify\": \"^11.2.0\"\r\n  }\r\n}\r\n```\r\n\r\nThe main package looks something like this:\r\n\r\n```json\r\n{\r\n  \"name\": \"main\",\r\n  \"version\": \"1.0.0\",\r\n  \"description\": \"...\",\r\n  \"main\": \"index.js\",\r\n  \"scripts\": {\r\n    \"prepublish\": \"babel\"\r\n  },\r\n  \"author\": \"...\",\r\n  \"license\": \"BSD-3-Clause\",\r\n  \"dependencies\": {\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel\": \"^6.3.13\"\r\n  }\r\n}\r\n```\r\n\r\nOne would think that you could run `npm install` inside one of the example project folders without hiccups.  However, doing so will yield an error, for this example, that `babel` doesn't exist.  It makes sense to me that `babel` is needed, because the relative path implies that you are installing from source, which means a dev install of the *main* package is needed.  However, what doesn't make sense is that either A) the dev dependencies of the *main* package aren't being installed or B) they are being installed, but to somewhere that is not on the path when the prepublish step of the *main* package is ran.\r\n\r\nThanks in advanced!\r\n\r\nAlso, for those who are curious, what I'm working on is open source.  So you can see the full failing example here: [github.com/ipython/ipywidgets](https://github.com/ipython/ipywidgets)"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/164851520","html_url":"https://github.com/npm/npm/issues/10794#issuecomment-164851520","issue_url":"https://api.github.com/repos/npm/npm/issues/10794","id":164851520,"user":{"login":"jdfreder","id":3292874,"avatar_url":"https://avatars.githubusercontent.com/u/3292874?v=3","gravatar_id":"","url":"https://api.github.com/users/jdfreder","html_url":"https://github.com/jdfreder","followers_url":"https://api.github.com/users/jdfreder/followers","following_url":"https://api.github.com/users/jdfreder/following{/other_user}","gists_url":"https://api.github.com/users/jdfreder/gists{/gist_id}","starred_url":"https://api.github.com/users/jdfreder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdfreder/subscriptions","organizations_url":"https://api.github.com/users/jdfreder/orgs","repos_url":"https://api.github.com/users/jdfreder/repos","events_url":"https://api.github.com/users/jdfreder/events{/privacy}","received_events_url":"https://api.github.com/users/jdfreder/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T18:40:10Z","updated_at":"2015-12-15T18:40:10Z","body":"I think I've identified the root issue in #10840 and (made the issue more concise)."}}