{"id":6510,"date":"2013-12-20T15:09:36","date_gmt":"2013-12-20T15:09:36","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/new-features-in-node-tools-for-visual-studios-december-dev-build\/"},"modified":"2016-07-28T10:54:34","modified_gmt":"2016-07-28T10:54:34","slug":"new-features-in-node-tools-for-visual-studios-december-dev-build","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/new-features-in-node-tools-for-visual-studios-december-dev-build\/","title":{"rendered":"New Features in Node Tools for Visual Studio&rsquo;s December Dev Build"},"content":{"rendered":"<p>Download the latest Node Tools for Visual Studio dev build from:<\/p>\n<p><a href=\"https:\/\/nodejstools.codeplex.com\/releases\/view\/116275\">https:\/\/nodejstools.codeplex.com\/releases\/view\/116275<\/a><\/p>\n<p>It&#8217;s only been a month since the first alpha, but a lot has happened since with fixes and improvements to intellisense, various areas of the user interface, solution explorer, build, the REPL, along with the <strong>npm<\/strong> support that Red Gate has been working on.<\/p>\n<p>In this post I&#8217;m going to run through the <strong>npm<\/strong> improvements.<\/p>\n<p>The first to mention is the much requested <strong>npm<\/strong> <strong>install<\/strong> support for missing packages, which will take you from this&#8230;<\/p>\n<p><a href=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/MissingPackages.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/MissingPackages_thumb.png\" width=\"358\" height=\"394\" alt=\"MissingPackages_thumb.png\" \/><\/a> <\/p>\n<p>to this&#8230;<\/p>\n<p><a href=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/InstalledPackages.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/InstalledPackages_thumb.png\" width=\"343\" height=\"402\" alt=\"InstalledPackages_thumb.png\" \/><\/a> <\/p>\n<p>just by clicking <strong>Install Missing npm Packages<\/strong> on the <strong>npm<\/strong> node&#8217;s context menu in <strong>Solution Explorer<\/strong>.<\/p>\n<p>We&#8217;ve also improved the <strong>npm<\/strong> output log by updating the status bar whilst <strong>npm<\/strong> is running, and telling you whether the command completed successfully or not, so now you don&#8217;t need to have the <strong>Output<\/strong> window open to see what <strong>npm<\/strong> is doing.<\/p>\n<p><a href=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/NpmOutputAndStatus.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/NpmOutputAndStatus_thumb.png\" width=\"504\" height=\"287\" alt=\"NpmOutputAndStatus_thumb.png\" \/><\/a> <\/p>\n<p>Similarly, we&#8217;ve also added support for <strong>npm update<\/strong> with an <strong>Update npm Modules<\/strong> command on the <strong>npm<\/strong> node context menu.<\/p>\n<p>You can also perform <strong>npm<\/strong> tasks on individual modules by right-clicking on them and selecting one of the following options:<\/p>\n<ul>\n<li><strong>Install Missing npm Module<\/strong> &#8211; install an individual missing module; obviously only available for missing modules.<\/li>\n<li><strong>Update Module<\/strong> &#8211; update module to the latest version and update <em>package.json<\/em> accordingly.<\/li>\n<li><strong>Uninstall npm Module<\/strong> &#8211; uninstall module and update <em>package.json<\/em> accordingly.<\/li>\n<\/ul>\n<p>We&#8217;ll soon be adding multi-select support to improve module management further.<\/p>\n<p>Note that these commands will <em>only<\/em> work on top-level modules listed immediately below the <strong>npm<\/strong> node to avoid corrupting your module installations. Remember that sub-modules are installed because they are required for your top-level modules to work properly, at least in most cases!<\/p>\n<p>One of the <strong>npm<\/strong> bugbears from the alpha was that the package repository catalogue was not cached across Visual Studio sessions. This lead to a sometimes significant delay when switching to the <strong>Search npm Repository<\/strong> tab in the <strong>npm Package Management<\/strong> dialog the first time you opened it in your Visual Studio session before the list of all available packages was populated.<\/p>\n<p>I&#8217;m pleased to say we now cache the contents of the package repository catalogue across sessions, so you can always search for packages quickly.<\/p>\n<p>Of course, new packages are being published all the time &#8211; some 3,000 or more over the past 6 weeks or so have been added to the repository &#8211; so the cache can quickly become out of date. We therefore allow you to re-download the repository catalogue any time you like, and tell you the last time you refreshed your cached copy. Just click the new <strong>Refresh Catalog<\/strong> button.<\/p>\n<p><a href=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/CachedRepoContents.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.red-gate.com\/simple-talk\/wp-content\/uploads\/2013\/12\/CachedRepoContents_thumb.png\" width=\"504\" height=\"377\" alt=\"CachedRepoContents_thumb.png\" \/><\/a> <\/p>\n<p>You can see that my cache of the repo contents is now 4 days old so I should probably think about updating it. The longer you leave it, the more politely assertive the message about how long since you last updated becomes!<\/p>\n<p>Note that we don&#8217;t force you to update your cache on a schedule because, as we&#8217;ve already said, sometimes this can take a minute or two (generally it should take only a few seconds, depending upon your connection speed, etc.).<\/p>\n<p>Finally, there have been numerous bug fixes, notably for gracefully handling invalid package.json files. In many cases errors in <em>package.json<\/em> are now reported in the Output window, which will make it easier for you to find and fix them.<\/p>\n<\/p>\n<p>Expect to see many more improvements over the coming releases leading up to the beta.<\/p>\n<p>Merry Christmas and a Happy New Year to all of you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the latest Node Tools for Visual Studio dev build from: https:\/\/nodejstools.codeplex.com\/releases\/view\/116275 It&#8217;s only been a month since the first alpha, but a lot has happened since with fixes and improvements to intellisense, various areas of the user interface, solution explorer, build, the REPL, along with the npm support that Red Gate has been working&#8230;&hellip;<\/p>\n","protected":false},"author":221714,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-6510","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/221714"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=6510"}],"version-history":[{"count":2,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6510\/revisions"}],"predecessor-version":[{"id":25829,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6510\/revisions\/25829"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=6510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=6510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=6510"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=6510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}