{"action":"created","comment":{"url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/comments/46512326","id":46512326,"diff_hunk":"@@ -47,12 +47,22 @@ For more options of the PhantomJS environment, see\n \n ## <a name=\"node-on-ubuntu\"></a> Node.js on Ubuntu\n \n-On Ubuntu, the Node.js command from the [nodejs package](http://packages.ubuntu.com/utopic/nodejs) is called `nodejs` instead of `node` (when installed through the package manager). This will make the Node.js environment fail (since it simply calls `node`).\n+Easiest way to handle Node.js versions and installations on Ubuntu (and in Linux systems in general) is to use [nvm](https://github.com/creationix/nvm). All instructions are included.\n \n-You have two options to solve this:\n+In short it boils down to:\n+\n+    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash\n+    . ~/.nvm/nvm.sh\n+\n+Add these lines to your ~/.bashrc, ~/.profile, or ~/.zshrc file to have it automatically sourced upon login:\n+\n+    export NVM_DIR=\"$HOME/.nvm\"\n+    [ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\" # This loads nvm","path":"doc/project/js-environments.md","position":16,"original_position":16,"commit_id":"b268ae86d6237ee9c6e958f1c278bf0add03fd8f","original_commit_id":"b268ae86d6237ee9c6e958f1c278bf0add03fd8f","user":{"login":"mikaturunen","id":1472272,"avatar_url":"https://avatars.githubusercontent.com/u/1472272?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaturunen","html_url":"https://github.com/mikaturunen","followers_url":"https://api.github.com/users/mikaturunen/followers","following_url":"https://api.github.com/users/mikaturunen/following{/other_user}","gists_url":"https://api.github.com/users/mikaturunen/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaturunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaturunen/subscriptions","organizations_url":"https://api.github.com/users/mikaturunen/orgs","repos_url":"https://api.github.com/users/mikaturunen/repos","events_url":"https://api.github.com/users/mikaturunen/events{/privacy}","received_events_url":"https://api.github.com/users/mikaturunen/received_events","type":"User","site_admin":false},"body":"Good point. Removing.","created_at":"2015-12-03T04:41:39Z","updated_at":"2015-12-03T04:41:39Z","html_url":"https://github.com/scala-js/scala-js-website/pull/214#discussion_r46512326","pull_request_url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/comments/46512326"},"html":{"href":"https://github.com/scala-js/scala-js-website/pull/214#discussion_r46512326"},"pull_request":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214","id":52441170,"html_url":"https://github.com/scala-js/scala-js-website/pull/214","diff_url":"https://github.com/scala-js/scala-js-website/pull/214.diff","patch_url":"https://github.com/scala-js/scala-js-website/pull/214.patch","issue_url":"https://api.github.com/repos/scala-js/scala-js-website/issues/214","number":214,"state":"open","locked":false,"title":"Update Node.js information for Ubuntu","user":{"login":"mikaturunen","id":1472272,"avatar_url":"https://avatars.githubusercontent.com/u/1472272?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaturunen","html_url":"https://github.com/mikaturunen","followers_url":"https://api.github.com/users/mikaturunen/followers","following_url":"https://api.github.com/users/mikaturunen/following{/other_user}","gists_url":"https://api.github.com/users/mikaturunen/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaturunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaturunen/subscriptions","organizations_url":"https://api.github.com/users/mikaturunen/orgs","repos_url":"https://api.github.com/users/mikaturunen/repos","events_url":"https://api.github.com/users/mikaturunen/events{/privacy}","received_events_url":"https://api.github.com/users/mikaturunen/received_events","type":"User","site_admin":false},"body":"Updating the actual Node.js setup information into a more standardized way of handling the Node.js environments and setups in general. \r\n\r\nBefore anyone says it.. Running shell scripts from the Internet:\r\n![Running shell scripts from the Internet](http://33.media.tumblr.com/bbc5ce35803d318aa8dd9461ad1e6386/tumblr_inline_nvd48dIU5z1raprkq_500.gif)\r\n\r\n\r\n\r\n","created_at":"2015-12-02T19:20:27Z","updated_at":"2015-12-03T04:41:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"809c2e1f4e6b33a96427619a91a27b9bac3e079b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214/commits","review_comments_url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214/comments","review_comment_url":"https://api.github.com/repos/scala-js/scala-js-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-js/scala-js-website/issues/214/comments","statuses_url":"https://api.github.com/repos/scala-js/scala-js-website/statuses/b268ae86d6237ee9c6e958f1c278bf0add03fd8f","head":{"label":"mikaturunen:master","ref":"master","sha":"b268ae86d6237ee9c6e958f1c278bf0add03fd8f","user":{"login":"mikaturunen","id":1472272,"avatar_url":"https://avatars.githubusercontent.com/u/1472272?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaturunen","html_url":"https://github.com/mikaturunen","followers_url":"https://api.github.com/users/mikaturunen/followers","following_url":"https://api.github.com/users/mikaturunen/following{/other_user}","gists_url":"https://api.github.com/users/mikaturunen/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaturunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaturunen/subscriptions","organizations_url":"https://api.github.com/users/mikaturunen/orgs","repos_url":"https://api.github.com/users/mikaturunen/repos","events_url":"https://api.github.com/users/mikaturunen/events{/privacy}","received_events_url":"https://api.github.com/users/mikaturunen/received_events","type":"User","site_admin":false},"repo":{"id":47279832,"name":"scala-js-website","full_name":"mikaturunen/scala-js-website","owner":{"login":"mikaturunen","id":1472272,"avatar_url":"https://avatars.githubusercontent.com/u/1472272?v=3","gravatar_id":"","url":"https://api.github.com/users/mikaturunen","html_url":"https://github.com/mikaturunen","followers_url":"https://api.github.com/users/mikaturunen/followers","following_url":"https://api.github.com/users/mikaturunen/following{/other_user}","gists_url":"https://api.github.com/users/mikaturunen/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaturunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaturunen/subscriptions","organizations_url":"https://api.github.com/users/mikaturunen/orgs","repos_url":"https://api.github.com/users/mikaturunen/repos","events_url":"https://api.github.com/users/mikaturunen/events{/privacy}","received_events_url":"https://api.github.com/users/mikaturunen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikaturunen/scala-js-website","description":"Source for http://www.scala-js.org/","fork":true,"url":"https://api.github.com/repos/mikaturunen/scala-js-website","forks_url":"https://api.github.com/repos/mikaturunen/scala-js-website/forks","keys_url":"https://api.github.com/repos/mikaturunen/scala-js-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikaturunen/scala-js-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikaturunen/scala-js-website/teams","hooks_url":"https://api.github.com/repos/mikaturunen/scala-js-website/hooks","issue_events_url":"https://api.github.com/repos/mikaturunen/scala-js-website/issues/events{/number}","events_url":"https://api.github.com/repos/mikaturunen/scala-js-website/events","assignees_url":"https://api.github.com/repos/mikaturunen/scala-js-website/assignees{/user}","branches_url":"https://api.github.com/repos/mikaturunen/scala-js-website/branches{/branch}","tags_url":"https://api.github.com/repos/mikaturunen/scala-js-website/tags","blobs_url":"https://api.github.com/repos/mikaturunen/scala-js-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikaturunen/scala-js-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikaturunen/scala-js-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikaturunen/scala-js-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikaturunen/scala-js-website/statuses/{sha}","languages_url":"https://api.github.com/repos/mikaturunen/scala-js-website/languages","stargazers_url":"https://api.github.com/repos/mikaturunen/scala-js-website/stargazers","contributors_url":"https://api.github.com/repos/mikaturunen/scala-js-website/contributors","subscribers_url":"https://api.github.com/repos/mikaturunen/scala-js-website/subscribers","subscription_url":"https://api.github.com/repos/mikaturunen/scala-js-website/subscription","commits_url":"https://api.github.com/repos/mikaturunen/scala-js-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikaturunen/scala-js-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikaturunen/scala-js-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikaturunen/scala-js-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikaturunen/scala-js-website/contents/{+path}","compare_url":"https://api.github.com/repos/mikaturunen/scala-js-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikaturunen/scala-js-website/merges","archive_url":"https://api.github.com/repos/mikaturunen/scala-js-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikaturunen/scala-js-website/downloads","issues_url":"https://api.github.com/repos/mikaturunen/scala-js-website/issues{/number}","pulls_url":"https://api.github.com/repos/mikaturunen/scala-js-website/pulls{/number}","milestones_url":"https://api.github.com/repos/mikaturunen/scala-js-website/milestones{/number}","notifications_url":"https://api.github.com/repos/mikaturunen/scala-js-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikaturunen/scala-js-website/labels{/name}","releases_url":"https://api.github.com/repos/mikaturunen/scala-js-website/releases{/id}","created_at":"2015-12-02T18:25:22Z","updated_at":"2015-12-02T18:25:24Z","pushed_at":"2015-12-02T19:18:51Z","git_url":"git://github.com/mikaturunen/scala-js-website.git","ssh_url":"git@github.com:mikaturunen/scala-js-website.git","clone_url":"https://github.com/mikaturunen/scala-js-website.git","svn_url":"https://github.com/mikaturunen/scala-js-website","homepage":null,"size":3237,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scala-js:master","ref":"master","sha":"c45f283b7867eef20c36ca64c31561d7de02b181","user":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"repo":{"id":14980509,"name":"scala-js-website","full_name":"scala-js/scala-js-website","owner":{"login":"scala-js","id":6039724,"avatar_url":"https://avatars.githubusercontent.com/u/6039724?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-js","html_url":"https://github.com/scala-js","followers_url":"https://api.github.com/users/scala-js/followers","following_url":"https://api.github.com/users/scala-js/following{/other_user}","gists_url":"https://api.github.com/users/scala-js/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-js/subscriptions","organizations_url":"https://api.github.com/users/scala-js/orgs","repos_url":"https://api.github.com/users/scala-js/repos","events_url":"https://api.github.com/users/scala-js/events{/privacy}","received_events_url":"https://api.github.com/users/scala-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-js/scala-js-website","description":"Source for http://www.scala-js.org/","fork":false,"url":"https://api.github.com/repos/scala-js/scala-js-website","forks_url":"https://api.github.com/repos/scala-js/scala-js-website/forks","keys_url":"https://api.github.com/repos/scala-js/scala-js-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-js/scala-js-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-js/scala-js-website/teams","hooks_url":"https://api.github.com/repos/scala-js/scala-js-website/hooks","issue_events_url":"https://api.github.com/repos/scala-js/scala-js-website/issues/events{/number}","events_url":"https://api.github.com/repos/scala-js/scala-js-website/events","assignees_url":"https://api.github.com/repos/scala-js/scala-js-website/assignees{/user}","branches_url":"https://api.github.com/repos/scala-js/scala-js-website/branches{/branch}","tags_url":"https://api.github.com/repos/scala-js/scala-js-website/tags","blobs_url":"https://api.github.com/repos/scala-js/scala-js-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-js/scala-js-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-js/scala-js-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-js/scala-js-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-js/scala-js-website/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-js/scala-js-website/languages","stargazers_url":"https://api.github.com/repos/scala-js/scala-js-website/stargazers","contributors_url":"https://api.github.com/repos/scala-js/scala-js-website/contributors","subscribers_url":"https://api.github.com/repos/scala-js/scala-js-website/subscribers","subscription_url":"https://api.github.com/repos/scala-js/scala-js-website/subscription","commits_url":"https://api.github.com/repos/scala-js/scala-js-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-js/scala-js-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-js/scala-js-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-js/scala-js-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-js/scala-js-website/contents/{+path}","compare_url":"https://api.github.com/repos/scala-js/scala-js-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-js/scala-js-website/merges","archive_url":"https://api.github.com/repos/scala-js/scala-js-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-js/scala-js-website/downloads","issues_url":"https://api.github.com/repos/scala-js/scala-js-website/issues{/number}","pulls_url":"https://api.github.com/repos/scala-js/scala-js-website/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-js/scala-js-website/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-js/scala-js-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-js/scala-js-website/labels{/name}","releases_url":"https://api.github.com/repos/scala-js/scala-js-website/releases{/id}","created_at":"2013-12-06T10:55:02Z","updated_at":"2015-12-01T07:10:27Z","pushed_at":"2015-12-02T19:20:27Z","git_url":"git://github.com/scala-js/scala-js-website.git","ssh_url":"git@github.com:scala-js/scala-js-website.git","clone_url":"https://github.com/scala-js/scala-js-website.git","svn_url":"https://github.com/scala-js/scala-js-website","homepage":null,"size":3382,"stargazers_count":250,"watchers_count":250,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":17,"forks":72,"open_issues":17,"watchers":250,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214"},"html":{"href":"https://github.com/scala-js/scala-js-website/pull/214"},"issue":{"href":"https://api.github.com/repos/scala-js/scala-js-website/issues/214"},"comments":{"href":"https://api.github.com/repos/scala-js/scala-js-website/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-js/scala-js-website/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/scala-js/scala-js-website/statuses/b268ae86d6237ee9c6e958f1c278bf0add03fd8f"}}}}