{"action":"opened","issue":{"url":"https://api.github.com/repos/zeit/now-issues/issues/6","repository_url":"https://api.github.com/repos/zeit/now-issues","labels_url":"https://api.github.com/repos/zeit/now-issues/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/zeit/now-issues/issues/6/comments","events_url":"https://api.github.com/repos/zeit/now-issues/issues/6/events","html_url":"https://github.com/zeit/now-issues/issues/6","id":167633394,"number":6,"title":"Looks like some packages are not installed","user":{"login":"gillchristian","id":8309423,"avatar_url":"https://avatars.githubusercontent.com/u/8309423?v=3","gravatar_id":"","url":"https://api.github.com/users/gillchristian","html_url":"https://github.com/gillchristian","followers_url":"https://api.github.com/users/gillchristian/followers","following_url":"https://api.github.com/users/gillchristian/following{/other_user}","gists_url":"https://api.github.com/users/gillchristian/gists{/gist_id}","starred_url":"https://api.github.com/users/gillchristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillchristian/subscriptions","organizations_url":"https://api.github.com/users/gillchristian/orgs","repos_url":"https://api.github.com/users/gillchristian/repos","events_url":"https://api.github.com/users/gillchristian/events{/privacy}","received_events_url":"https://api.github.com/users/gillchristian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-26T15:15:07Z","updated_at":"2016-07-26T15:15:07Z","closed_at":null,"body":"Hi! I'm having trouble deploying an express app with now.\r\n\r\nThis is my `package.json`\r\n```json\r\n{\r\n  \"name\": \"my-app\",\r\n  \"main\": \"src/server.js\",\r\n  \"scripts\": {\r\n    \"now-build\": \"npm i\",\r\n    \"now-start\": \"node src/server.js\",\r\n  },\r\n  \"dependencies\": {\r\n    \"express\": \"^4.14.0\"\r\n  },\r\n  \"engines\": {\r\n    \"node\": \">=6\"\r\n  }\r\n}\r\n```\r\n\r\nI don't need to run a build so my `now-build` was just `echo 'skiping the build :D'`. But `now-start` was throwing this error:\r\n\r\n```sh\r\nTypeError: express is not a function\r\n```\r\nPointing to the second line of my `server.js` file\r\n```js\r\nconst express = require('express')\r\nconst app = express()\r\n```\r\n\r\nFor the moment it is working with `npm install` running twice, since I added it to the `now-build` script.\r\n\r\nPS: `now` is awesome :ghost: "}}
{"actor":{"display_login":"gillchristian"}}