{"action":"created","issue":{"url":"https://api.github.com/repos/node-red/node-red/issues/749","labels_url":"https://api.github.com/repos/node-red/node-red/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/node-red/node-red/issues/749/comments","events_url":"https://api.github.com/repos/node-red/node-red/issues/749/events","html_url":"https://github.com/node-red/node-red/issues/749","id":116282295,"number":749,"title":"node-red command won't work after npm install","user":{"login":"dbaba","id":1858156,"avatar_url":"https://avatars.githubusercontent.com/u/1858156?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaba","html_url":"https://github.com/dbaba","followers_url":"https://api.github.com/users/dbaba/followers","following_url":"https://api.github.com/users/dbaba/following{/other_user}","gists_url":"https://api.github.com/users/dbaba/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaba/subscriptions","organizations_url":"https://api.github.com/users/dbaba/orgs","repos_url":"https://api.github.com/users/dbaba/repos","events_url":"https://api.github.com/users/dbaba/events{/privacy}","received_events_url":"https://api.github.com/users/dbaba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T07:33:31Z","updated_at":"2015-11-11T07:50:14Z","closed_at":null,"body":"`node-red` command won't work by default when Node-RED is installed with `npm install -g node-red`.\r\nPlease fix the issue. The tested version is [0.12.1](https://github.com/node-red/node-red/releases/tag/0.12.1).\r\nThe detail is shown below.\r\n\r\nAs root user, I ran the following commands as the [guide](http://nodered.org/docs/getting-started/installation.html) showed me.\r\n```\r\n# npm install -g --unsafe-perm node-red\r\n# node-red\r\n```\r\nAnd got the following message.\r\n```\r\nNode-RED has not been built. See README.md for details\r\n```\r\nNode-RED wouldn't start because [`red/red.js` looked for a file `../public/red/red.min.js`](https://github.com/node-red/node-red/blob/master/red%2Fred.js#L34), which was never generated unless `grunt ` was performed.\r\n\r\nWith the current [package.json](https://github.com/node-red/node-red/blob/master/package.json), `npm install` never generates such the file.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/node-red/node-red/issues/comments/155695677","html_url":"https://github.com/node-red/node-red/issues/749#issuecomment-155695677","issue_url":"https://api.github.com/repos/node-red/node-red/issues/749","id":155695677,"user":{"login":"knolleary","id":51083,"avatar_url":"https://avatars.githubusercontent.com/u/51083?v=3","gravatar_id":"","url":"https://api.github.com/users/knolleary","html_url":"https://github.com/knolleary","followers_url":"https://api.github.com/users/knolleary/followers","following_url":"https://api.github.com/users/knolleary/following{/other_user}","gists_url":"https://api.github.com/users/knolleary/gists{/gist_id}","starred_url":"https://api.github.com/users/knolleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knolleary/subscriptions","organizations_url":"https://api.github.com/users/knolleary/orgs","repos_url":"https://api.github.com/users/knolleary/repos","events_url":"https://api.github.com/users/knolleary/events{/privacy}","received_events_url":"https://api.github.com/users/knolleary/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T07:50:14Z","updated_at":"2015-11-11T07:50:14Z","body":"Hi,\r\n\r\nI'm not able to reproduce this - the package published to npm has been properly built and installs fine in our of our tests.\r\n\r\nYou would get this error if you simply cloned the git repository and ran npm install - as our docs say, you also need to run grunt to build the code - http://nodered.org/docs/getting-started/installation.html#for-development---from-github\r\n\r\nCan you provide any more details to help us understand the scenario? What version of node.js/npm are you using?"}}