{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1088","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1088/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1088/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1088/events","html_url":"https://github.com/gulpjs/gulp/issues/1088","id":84689571,"number":1088,"title":"version undefined after npm install","user":{"login":"albertjan","id":301791,"avatar_url":"https://avatars.githubusercontent.com/u/301791?v=3","gravatar_id":"","url":"https://api.github.com/users/albertjan","html_url":"https://github.com/albertjan","followers_url":"https://api.github.com/users/albertjan/followers","following_url":"https://api.github.com/users/albertjan/following{/other_user}","gists_url":"https://api.github.com/users/albertjan/gists{/gist_id}","starred_url":"https://api.github.com/users/albertjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertjan/subscriptions","organizations_url":"https://api.github.com/users/albertjan/orgs","repos_url":"https://api.github.com/users/albertjan/repos","events_url":"https://api.github.com/users/albertjan/events{/privacy}","received_events_url":"https://api.github.com/users/albertjan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-03T17:53:30Z","updated_at":"2015-06-03T20:23:40Z","closed_at":"2015-06-03T19:40:07Z","body":"Also reported over at @projectkudu https://github.com/projectkudu/kudu/issues/1573\r\n\r\nThe first time after we do `npm install` we see this error:\r\n\r\n```js\r\n\\home\\site\\repository\\node_modules\\gulp\\node_modules\\semver\\semver.js:281\r\n    throw new TypeError('Invalid Version: ' + version);\r\n          ^\r\nTypeError: Invalid Version: undefined\r\n    at new SemVer (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\semver\\semver.js:281:11)\r\n    at SemVer.compare (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\semver\\semver.js:348:13)\r\n    at compare (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\semver\\semver.js:571:31)\r\n    at Function.gt (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\semver\\semver.js:600:10)\r\n    at Liftoff.handleArguments (D:\\home\\site\\repository\\node_modules\\gulp\\bin\\gulp.js:99:14)\r\n    at Liftoff.<anonymous> (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\liftoff\\index.js:192:16)\r\n    at module.exports (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\liftoff\\node_modules\\flagged-respawn\\index.js:17:3)\r\n    at Liftoff.<anonymous> (D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\liftoff\\index.js:185:9)\r\n    at D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\liftoff\\index.js:159:9\r\n    at D:\\home\\site\\repository\\node_modules\\gulp\\node_modules\\v8flags\\index.js:79:12\r\n```\r\n\r\nIf we run `gulp --version` before `gulp` it works.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/108604143","html_url":"https://github.com/gulpjs/gulp/issues/1088#issuecomment-108604143","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1088","id":108604143,"user":{"login":"tkellen","id":1004324,"avatar_url":"https://avatars.githubusercontent.com/u/1004324?v=3","gravatar_id":"","url":"https://api.github.com/users/tkellen","html_url":"https://github.com/tkellen","followers_url":"https://api.github.com/users/tkellen/followers","following_url":"https://api.github.com/users/tkellen/following{/other_user}","gists_url":"https://api.github.com/users/tkellen/gists{/gist_id}","starred_url":"https://api.github.com/users/tkellen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkellen/subscriptions","organizations_url":"https://api.github.com/users/tkellen/orgs","repos_url":"https://api.github.com/users/tkellen/repos","events_url":"https://api.github.com/users/tkellen/events{/privacy}","received_events_url":"https://api.github.com/users/tkellen/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T20:23:40Z","updated_at":"2015-06-03T20:23:40Z","body":"I'm not able to reproduce this. Can you paste the output of this please?\r\n```\r\nnode -v\r\nnpm -v\r\nmkdir test\r\ncd test\r\nnpm install gulp\r\ntouch gulpfile.js\r\nnode node_modules/gulp/bin/gulp\r\n```"}}