{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/61981769","id":61981769,"diff_hunk":"@@ -0,0 +1,45 @@\n+# NPM Packages #\n+## Azure DevTest Labs Artifact ##\n+\n+### Linux NPM Package Manager Artifact ###\n+This Azure DevTest artifact allows the user to specify packages to install onto an Azure DevTest Lab VM\n+via the npm package system. The npm package manager must first be installed on the system in some other \n+manner, one can use the bash script artifact, the apt artifact for debian-based systems, or the yum artifact\n+for redhat-based systems.\n+\n+### Usage ###\n+The script is intended for use in the Azure DevTest Labs artifact system, and the parameters for the artifact are fed directly\n+into the script. However, you can run it from any bash shell using the following format:\n+\n+        bash> .\\linux-npm-package.sh -packages (PACKAGE-LIST) --install-to (global|/path/to) --options [ADDITIONAL-OPTIONS]\n+\n+**Where:**\n+\n+*packages*\n+\n+The names of the packages to install, separated by spaces. Each package declaration follows the allowable declarations in npm\n+install. For example, all the following would work:\n+\n+        pkgnm githubname/reponame @myorg/privatepackage\n+        \n+...please see the [man page for npm](https://docs.npmjs.com/cli/install) for a description of all package reference strings\n+    \n+*install-to*\n+\n+Defaults to global, the 'install-to' parameter tells npm where to install the named packages. This can be the keyword 'global' \n+or left blank (default is global) to install to the global location (typically /usr/lib/node_modules on a Linux system). Or the\n+value can be any valid path (ie. /var/tmp/dev) to install the npm packages into.\n+\n+*options*\n+\n+Any other valid arguments that the npm-install command accepts. Since these additional parameters allow for relatively infinite permutations\n+they will likely be susceptible to failure on the images supplied by the Azure DevTest Labs. Advanced users who wish to push the limiatations","path":"Artifacts/linux-npm-package/README.md","position":36,"original_position":36,"commit_id":"5b88c29e1b645e37d609534eb9828a17e49a9186","original_commit_id":"5b88c29e1b645e37d609534eb9828a17e49a9186","user":{"login":"drwill-ms","id":14119884,"avatar_url":"https://avatars.githubusercontent.com/u/14119884?v=3","gravatar_id":"","url":"https://api.github.com/users/drwill-ms","html_url":"https://github.com/drwill-ms","followers_url":"https://api.github.com/users/drwill-ms/followers","following_url":"https://api.github.com/users/drwill-ms/following{/other_user}","gists_url":"https://api.github.com/users/drwill-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/drwill-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwill-ms/subscriptions","organizations_url":"https://api.github.com/users/drwill-ms/orgs","repos_url":"https://api.github.com/users/drwill-ms/repos","events_url":"https://api.github.com/users/drwill-ms/events{/privacy}","received_events_url":"https://api.github.com/users/drwill-ms/received_events","type":"User","site_admin":false},"body":"limitations (misspelled)","created_at":"2016-05-04T01:27:20Z","updated_at":"2016-05-04T01:27:20Z","html_url":"https://github.com/Azure/azure-devtestlab/pull/76#discussion_r61981769","pull_request_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments/61981769"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/76#discussion_r61981769"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76","id":68664621,"html_url":"https://github.com/Azure/azure-devtestlab/pull/76","diff_url":"https://github.com/Azure/azure-devtestlab/pull/76.diff","patch_url":"https://github.com/Azure/azure-devtestlab/pull/76.patch","issue_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/76","number":76,"state":"open","locked":false,"title":"Add support for npm package installations to Azure DevTest Labs artifacts","user":{"login":"d3r3kk","id":11466735,"avatar_url":"https://avatars.githubusercontent.com/u/11466735?v=3","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false},"body":"# ALM Rangers Artifact: NPM #\r\n## Package Management for Node.js on Linux ##\r\n\r\nExposes the nodejs package management system for Linux systems to the Azure DevTest Labs users.\r\n\r\nNow users can install whatever software they wish via npm in a way that is natural to people familiar with Node.js.\r\n\r\nPlease see README.md for list of supported distributions and usage.\r\n\r\n> Note: This does not install NPM as part of its execution. This is due to the vast ways that users will want to make use of to get the nodejs/npm version of their choice onto the Linux distribution of their choice. The prescribed manner that people will use this artifact is part of a chain such as: Bash artifact to setup the PPA for the desired version of node on the desired Linux distribution + Apt or Yum artifact to install nodejs/npm + this artifact to install npm packages.","created_at":"2016-05-03T06:55:08Z","updated_at":"2016-05-04T01:27:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"101c1a4722343473576bc73c7a8f93ba80db4d7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/76/comments","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/5b88c29e1b645e37d609534eb9828a17e49a9186","head":{"label":"d3r3kk:d3r3kk/almrangers/npm","ref":"d3r3kk/almrangers/npm","sha":"5b88c29e1b645e37d609534eb9828a17e49a9186","user":{"login":"d3r3kk","id":11466735,"avatar_url":"https://avatars.githubusercontent.com/u/11466735?v=3","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false},"repo":{"id":49604558,"name":"azure-devtestlab","full_name":"d3r3kk/azure-devtestlab","owner":{"login":"d3r3kk","id":11466735,"avatar_url":"https://avatars.githubusercontent.com/u/11466735?v=3","gravatar_id":"","url":"https://api.github.com/users/d3r3kk","html_url":"https://github.com/d3r3kk","followers_url":"https://api.github.com/users/d3r3kk/followers","following_url":"https://api.github.com/users/d3r3kk/following{/other_user}","gists_url":"https://api.github.com/users/d3r3kk/gists{/gist_id}","starred_url":"https://api.github.com/users/d3r3kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3r3kk/subscriptions","organizations_url":"https://api.github.com/users/d3r3kk/orgs","repos_url":"https://api.github.com/users/d3r3kk/repos","events_url":"https://api.github.com/users/d3r3kk/events{/privacy}","received_events_url":"https://api.github.com/users/d3r3kk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d3r3kk/azure-devtestlab","description":"Azure DevTestLab artifacts, scripts and samples","fork":true,"url":"https://api.github.com/repos/d3r3kk/azure-devtestlab","forks_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/forks","keys_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/teams","hooks_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/hooks","issue_events_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/issues/events{/number}","events_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/events","assignees_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/assignees{/user}","branches_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/branches{/branch}","tags_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/tags","blobs_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/statuses/{sha}","languages_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/languages","stargazers_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/stargazers","contributors_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/contributors","subscribers_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/subscribers","subscription_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/subscription","commits_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/contents/{+path}","compare_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/merges","archive_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/downloads","issues_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/issues{/number}","pulls_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/pulls{/number}","milestones_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/milestones{/number}","notifications_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/labels{/name}","releases_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/releases{/id}","deployments_url":"https://api.github.com/repos/d3r3kk/azure-devtestlab/deployments","created_at":"2016-01-13T21:54:11Z","updated_at":"2016-01-13T21:54:12Z","pushed_at":"2016-05-03T06:51:43Z","git_url":"git://github.com/d3r3kk/azure-devtestlab.git","ssh_url":"git@github.com:d3r3kk/azure-devtestlab.git","clone_url":"https://github.com/d3r3kk/azure-devtestlab.git","svn_url":"https://github.com/d3r3kk/azure-devtestlab","homepage":null,"size":1448,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","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":"Azure:master","ref":"master","sha":"9d2267ede6be005e9cd41aa6a1fccaad86eebfc4","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":42144605,"name":"azure-devtestlab","full_name":"Azure/azure-devtestlab","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-devtestlab","description":"Azure DevTestLab artifacts, scripts and samples","fork":false,"url":"https://api.github.com/repos/Azure/azure-devtestlab","forks_url":"https://api.github.com/repos/Azure/azure-devtestlab/forks","keys_url":"https://api.github.com/repos/Azure/azure-devtestlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-devtestlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-devtestlab/teams","hooks_url":"https://api.github.com/repos/Azure/azure-devtestlab/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-devtestlab/events","assignees_url":"https://api.github.com/repos/Azure/azure-devtestlab/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-devtestlab/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/tags","blobs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-devtestlab/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-devtestlab/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-devtestlab/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-devtestlab/subscription","commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-devtestlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-devtestlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-devtestlab/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-devtestlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-devtestlab/merges","archive_url":"https://api.github.com/repos/Azure/azure-devtestlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-devtestlab/downloads","issues_url":"https://api.github.com/repos/Azure/azure-devtestlab/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-devtestlab/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-devtestlab/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-devtestlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-devtestlab/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-devtestlab/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-devtestlab/deployments","created_at":"2015-09-08T23:32:52Z","updated_at":"2016-05-03T18:15:15Z","pushed_at":"2016-05-03T06:55:09Z","git_url":"git://github.com/Azure/azure-devtestlab.git","ssh_url":"git@github.com:Azure/azure-devtestlab.git","clone_url":"https://github.com/Azure/azure-devtestlab.git","svn_url":"https://github.com/Azure/azure-devtestlab","homepage":null,"size":2806,"stargazers_count":24,"watchers_count":24,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":11,"forks":41,"open_issues":11,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76"},"html":{"href":"https://github.com/Azure/azure-devtestlab/pull/76"},"issue":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/76"},"comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-devtestlab/statuses/5b88c29e1b645e37d609534eb9828a17e49a9186"}}}}