[{"data":1,"prerenderedAt":217},["ShallowReactive",2],{"article-update-npm-on-windows-current-best-approach":3},{"article":4,"tags":97,"previous":112,"next":180},{"id":5,"title":6,"author":7,"body":8,"createdAt":86,"description":87,"extension":88,"img":89,"meta":90,"navigation":91,"path":92,"seo":93,"stem":94,"tags":95,"updatedAt":86,"__hash__":96},"articles\u002Farticles\u002Fupdate-npm-on-windows–current-best-approach.md","Update npm on Windows–Current Best Approach","[object Object]",{"type":9,"value":10,"toc":82},"minimark",[11,20,23,30,41],[12,13,14,15,19],"p",{},"This is the new best way to upgrade ",[16,17,18],"strong",{},"npm"," on Windows.",[12,21,22],{},"Run PowerShell as Administrator",[24,25,26],"pre",{},[27,28,29],"code",{},"Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force\nnpm install -g npm-windows-upgrade\nnpm-windows-upgrade",[12,31,32,33,36,37,40],{},"Note: Do not run ",[27,34,35],{},"npm i -g npm",". Instead use ",[27,38,39],{},"npm-windows-upgrade"," to update npm going forward. Also if you run the NodeJS installer, it will replace the node version.",[42,43,44,48,55,58,61,64,71],"ul",{},[45,46,47],"li",{},"Upgrades npm in-place, where node installed it.",[45,49,50,51,54],{},"Easy updating, update to the latest by running ",[27,52,53],{},"npm-windows-upgrade -p -v latest",".",[45,56,57],{},"Does not modify the default path.",[45,59,60],{},"Does not change the default global package location.",[45,62,63],{},"Allows easy upgrades and downgrades.",[45,65,66,54],{},[67,68,70],"a",{"href":69},"https:\u002F\u002Fgithub.com\u002Fnpm\u002Fnpm\u002Fwiki\u002FTroubleshooting#upgrading-on-windows","Officially recommended by the NPM team",[45,72,73,74,77,78,81],{},"A list of versions matched between NPM and NODE (",[67,75,76],{"href":76},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002Freleases\u002F",") - but you will need to download NODE INSTALLER and run that to update node (",[67,79,80],{"href":80},"https:\u002F\u002Fnodejs.org\u002Fen\u002F",")",{"title":83,"searchDepth":84,"depth":84,"links":85},"",2,[],"2018-10-23T18:23:21.082Z","This is the new best way to upgrade npm on Windows","md","\u002Farticles\u002Fimages\u002Fsingleton_thumb.png",{},true,"\u002Farticles\u002Fupdate-npm-on-windows-current-best-approach",{"title":6,"description":87},"articles\u002Fupdate-npm-on-windows–current-best-approach",[18],"o4jaqV350CYl-Sj4Y9dUejcdC7WPqrJ9gzKLdNfnykg",[98],{"id":99,"title":100,"body":101,"description":105,"extension":88,"img":106,"meta":107,"name":18,"navigation":91,"path":108,"seo":109,"stem":110,"__hash__":111},"tags\u002Ftags\u002Fnpm.md","Npm",{"type":9,"value":102,"toc":103},[],{"title":83,"searchDepth":84,"depth":84,"links":104},[],"npm is two things... first and foremost, it is an online repository for the publishing of open-source Node.js projects; second, it is a command-line utility for interacting with said repository that aids in package installation, version management, and dependency management.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fnpm",{"description":105},"tags\u002Fnpm","lIC-Oaulb8LKEOVAMw2ea29_Ir9k8IMaGOx8do5mHaI",{"id":113,"title":114,"author":115,"body":116,"createdAt":171,"description":172,"extension":88,"img":150,"meta":173,"navigation":91,"path":174,"seo":175,"stem":176,"tags":177,"updatedAt":171,"__hash__":179},"articles\u002Farticles\u002Fteam-foundation-2018-tfs-net-core-command.md","Team Foundation 2018 TFS .NET Core Command",null,{"type":9,"value":117,"toc":169},[118,121,124,127,140,154],[12,119,120],{},"Using command dotnet push I was wanting to only publish nuget packages that included *.nupkg but also exclude *.symbols.nupkg pattern.",[12,122,123],{},"I figured okay, I would use option to negate a particular path. Using the help guidance",[12,125,126],{},"The pattern to match or path to nupkg files to be uploaded. Multiple patterns can be separated by a semicolon, and you can make a pattern negative by prefixing it with '-:'.",[12,128,129,130,137,139],{},"Example: ",[16,131,132,133],{},"\u002F",[134,135,136],"em",{},".nupkg;-:",[134,138,132],{},".Tests.nupkg",[12,141,142],{},[67,143,145],{"href":144},"\u002Farticles\u002Fimages\u002Fimage_636764987271419965.png",[146,147],"img",{"style":148,"title":149,"src":150,"alt":149,"width":151,"height":152,"border":153},"border: 0px currentcolor; display: inline; background-image: none;","image","\u002Farticles\u002Fimages\u002Fimage_thumb_636764987272194490.png",240,118,0,[12,155,156,157,160,161,168],{},"The issue is that this is incorrect.  If you wish to pattern negative prefix with ! (with semi-colon for make delimited) such as",[158,159],"br",{},"\n$(Build.ArtifactStagingDirectory)\u002F",[134,162,163,164,167],{},".nupkg",[16,165,166],{},";!","$(Build.ArtifactStagingDirectory)\u002F",".symbols.nupkg",{"title":83,"searchDepth":84,"depth":84,"links":170},[],"2018-10-30T12:18:47.314Z","The dotnet pack command builds the project and creates NuGet packages. Careful with configuration and specifically negative file pattern matching documentation(incorrect).",{},"\u002Farticles\u002Fteam-foundation-2018-tfs-net-core-command",{"title":114,"description":172},"articles\u002Fteam-foundation-2018-tfs-net-core-command",[178],"teamfoundationserver","_MZCZimFHc2iJo_tCF1mvmKFsazly7CiZo31fvpUqzE",{"id":181,"title":182,"author":7,"body":183,"createdAt":207,"description":208,"extension":88,"img":209,"meta":210,"navigation":91,"path":211,"seo":212,"stem":213,"tags":214,"updatedAt":207,"__hash__":216},"articles\u002Farticles\u002Funable-to-save-database-diagrams.md","Unable to save database diagrams",{"type":9,"value":184,"toc":205},[185,188,198],[12,186,187],{},"It sounds like your sysdiagrams table somehow lost the IDENTITY property on the diagram_id column.  Using the following SQL I was able to drop the sysdiagrams table and rebuild.  Note you will lose any existing diagrams (if you had any during this process)",[24,189,190,193],{},[27,191,192],{},"DROP TABLE dbo.sysdiagrams;\nGO\nCREATE TABLE [dbo].[sysdiagrams]\n(\n    [name] [sysname] NOT NULL,\n    [principal_id] [int] NOT NULL,\n    [diagram_id] [int] IDENTITY(1,1) PRIMARY KEY,\n    [version] [int] NULL,\n    [definition] [varbinary](max) NULL,\n    CONSTRAINT [UK_principal_name] UNIQUE ([principal_id],[name])\n);\n",[12,194,195],{},[27,196,197],{},"GO\nEXEC sys.sp_addextendedproperty\n@name=N'microsoft_database_tools_support',\n@value=1 ,\n@level0type=N'SCHEMA',\n@level0name=N'dbo',\n@level1type=N'TABLE',\n@level1name=N'sysdiagrams';\nGO",[12,199,200,201],{},"Note: ",[67,202,204],{"href":203},"https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fsql\u002Fssms\u002Fsql-server-management-studio-changelog-ssms?view=sql-server-2017","SSMS v18 release notes",{"title":83,"searchDepth":84,"depth":84,"links":206},[],"2018-10-03 13:11:00","Once you resolve the ability to save database diagrams, please note that in the next release of SSMS v18 Microsoft is deprecating database diagram feature.  I don't quite understand this thinking however you can find more information in the release notes.","\u002Farticles\u002Fimages\u002FrGWupsowyf.png",{},"\u002Farticles\u002Funable-to-save-database-diagrams",{"title":182,"description":208},"articles\u002Funable-to-save-database-diagrams",[215],"sql","Maa_m8xqrM2uhGGESY8pwhI8NqvDOGnAZPMbdyjrRtY",1781574766107]