[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-692307-105":59,"doc-detail-692307-en":130,"doc-similar-692307":153},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","the-essential-guide-to-the-node-package-manager-read-online","The Essential Guide to the Node Package Manager - read online","","Trevor Burnham’s npm guide introduces the Node Package Manager through hands-on setup and project creation. It covers installing Node and npm, managing multiple Node versions with nvm, verifying installations, and using npm’s core commands. The guide walks through initializing a new project with npm init, explaining how prompts generate package.json, how npm update installs upgrades, and how package.json roles connect information for npm, instructions for Node, and a readable overview for humans.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/the-essential-guide-to-the-node-package-manager-read-online/692307/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/the-essential-guide-to-the-node-package-manager-read-online/692307.png","ImageObject",300,407,{"name":92,"@type":93},"WHO AM I","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-19","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does npm help you do in a Node project?","Question",{"text":112,"@type":113},"npm helps create projects, install dependencies, and manage package information used by both npm and Node. It also provides a package.json workflow for humans and tools.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do you manage multiple Node versions for different projects?",{"text":117,"@type":113},"Use nvm on macOS or Unix-like systems to install specific Node versions, set a default version for new shell sessions, and keep project environments consistent.",{"name":119,"@type":110,"acceptedAnswer":120},"What is npm init used for and what does it generate?",{"text":121,"@type":113},"npm init creates (or updates) a package.json file by guiding you through common fields. It saves a preview for confirmation and can be run again later to adjust prompts.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},692307,1794192935,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":41,"preview_page_count":14,"preview_urls":144},10857686687108,"https://eur-avatar.wpscdn.com/avatar/9e0008edd84b319fe0c?x-oss-process=image/resize,m_fixed,w_180,h_180&k=1794290847020028784","The npm Book  \nThe Essential Guide to the Node Package Manager Trevor Burnham  \nThis book is for sale at [http://leanpub.com/npm](http://leanpub.com/npm)[ ](http://leanpub.com/npm)[This version was published on 2013-09-01](This version was published on 2013-09-01)  \nThis is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do.  \n©2012-2013 Trevor Burnham  \nTweet This Book!  \nPlease help Trevor Burnham by spreading the word about this book on Twitter!  \nThe suggested hashtag for this book is \\#npmbook.  \nFind out what other people are saying about the book by clicking on this link to search for this hashtag on Twitter:  \n[https://twitter.com/search/\\#npmbook](https://twitter.com/search/#npmbook)  \nContents  \nHello, npm! ............................................. 1  \nInstalling Node and npm .................................... 1  \nStarting a project with npm init ................................ 2  \nGetting to know our package, remotely ............................ 8  \nConclusion ............................................ 8  \nHello, npm!  \nIn this chapter, we’ll create our first Node project and add dependencies to it with npm. Even if you’ve used npm before, give it a skim; you might just pick up a few new tricks.  \nInstalling Node and npm  \nIf you haven’t already, install the latest stable release of Node and npm so that you can follow along. Just go to [http://nodejs.org/ and click](http://nodejs.org/ and click) “Download.” For Windows and Mac folks, there’s a handy GUI installer. If you’re on *nix, I’ll trust that you know how to install from source.  \nManaging multiple Node installations  \nIf you’re on a Mac or *nix system and you want to run different versions of Node for different projects, try nvm. ¹  \nAfter running the install script and starting a new shell session, use nvm to grab the latest stable version of Node and make it the default for new shell sessions:  \nnvm install 0 .10  \nnvm alias default 0 .10  \nCheck your Node installation with-v (short for--version):  \n$ node -v v0 .10 .9  \nAs of this writing, the latest stable Node branch is 0.10.x, while 0.11.x is the unstable “bleeding edge”branch.  \nUnless you unchecked the option in the GUI installer (or used the --without-npm flag when installing from source), you should have npm installed as well. But if you don’t, npm is famous for its one-line install:  \n¹[https://github.com/creationix/nvm](https://github.com/creationix/nvm)  \nHello, npm! 2  \n$ curl [https://npmjs.org/install.sh | sh](https://npmjs.org/install.sh | sh)[ ](https://npmjs.org/install.sh | sh)[Once installed](Once installed), [you can update npm with itself:](you can update npm with itself:)$ npm update -g npm  \nUse-v (--version) to check npm’s version:  \n$ npm -v  \n1.2.25  \nRunning npm by itself will give you a complete list of npm subcommands. You can run npm help \u003Csubcommand> to open that subcommand’s man page.  \nStarting a project with npm init  \nCreate a directory called hello-npm and cd into it. Now let’s run our first npm command:$ npm init  \nHelpfully, npm init explains what it does when you run it:  \nThis utility will walk you through creating a package.json file.  \nIt only covers the most common items, and tries to guess sane defaults.  \nSee `npm help json ` for definitive documentation on these fields and exactly what they do.  \nUse `npm install \u003Cpkg> --save ` afterwards to install a package and save it as a dependency in the package.json file.  \nPress ^C at any time to quit.  \nname: (hello-npm)  \nSo in short: npm init is a tool for creating (or modifying) a project’s package.json file. We’ll talk more about what package.json does in the next section, but first let’s respond to npm init’s prompts.  \nThe first thing we’re being asked is what the name of ","cbCaiaTq1UG5biHW","https://ap.wps.com/l/cbCaiaTq1UG5biHW","pdf",6789950,12,"English","# Hello, npm!\n## Installing Node and npm\n## Managing multiple Node installations\n# Starting a project with npm init\n## A look at package.json","[{\"question\":\"What does npm help you do in a Node project?\",\"answer\":\"npm helps create projects, install dependencies, and manage package information used by both npm and Node. It also provides a package.json workflow for humans and tools.\"},{\"question\":\"How do you manage multiple Node versions for different projects?\",\"answer\":\"Use nvm on macOS or Unix-like systems to install specific Node versions, set a default version for new shell sessions, and keep project environments consistent.\"},{\"question\":\"What is npm init used for and what does it generate?\",\"answer\":\"npm init creates (or updates) a package.json file by guiding you through common fields. It saves a preview for confirmation and can be run again later to adjust prompts.\"}]","The Essential Guide to the Node Package Manager - read online | PDF",[145,149],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5b659c5ff604059b141d1228bd9210d3.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/da6b7a5b79b9fce14e0737b907c5766b.webp",982,1270,{"list":154,"token":66},[155,161,167,173,179,185,192,198,204,210],{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":24,"category_name":30,"create_tm":160},692309,"npm Cheatsheet - Quick npm Command Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002737519/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=H0dbeswo1y%2BOs89zTGifj2fLs%2Fw%3D","npm-cheatsheet-quick-npm-command-reference",1794192940,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":24,"category_name":30,"create_tm":166},692308,"How To Code in Node.js - Chapter 1 - Getting Started","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200056/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=kDm%2BnyzE0KjxLKOiMdxvSe6ECVw%3D","how-to-code-in-nodejs-chapter-1-getting-started",1794192939,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":8,"category_name":30,"create_tm":172},759796,"Microservices with Node.js","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044484999/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=G6LKkOMX3v7elAMklh4p91y63Tw%3D","microservices-with-nodejs",1795895075,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":34,"category_name":30,"create_tm":178},692311,"Node.js Course","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200153/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=1jY4OgBCK6R8BiiYb0u9xjr11kY%3D","nodejs-course",1794192942,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":139,"category_name":30,"create_tm":184},673086,"Oracle Communications Network Charging and Control SDK Developer's Guide - Release 12.0.5 - April 2022","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990323493/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=%2BuyGfspER6UjQoWMk4xTJODXOxo%3D","oracle-communications-network-charging-and-control-sdk-developers-guide-release-1205-april-2022",1793619924,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":30,"create_tm":191},692237,"Guide to Golang","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002689626/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=XH1VgOfQWHaPqJApMFprAysQh%2Bc%3D","guide-to-golang",13,1794186693,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":52,"category_name":30,"create_tm":197},724833,"Electrical Installation Guide - 2018 - Practical IEC 60364 Step-by-Step Explanation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028793886/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=hgOoI1g1oq0TWQv%2F%2Bp3Vo84YqaE%3D","electrical-installation-guide-2018-practical-iec-60364-step-by-step-explanation",1795200655,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":39,"category_name":30,"create_tm":203},674528,"Ring Video Doorbell - Setup & Installation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229994091657/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=aMLinZVRKTLIZEytEx4CTIDVhGA%3D","ring-video-doorbell-setup-installation",1793763971,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":8,"category_name":30,"create_tm":209},759798,"Node.js Notes for Professionals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044485017/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=eK%2BnU6OqtziIekOlFE0BkSIWWpM%3D","nodejs-notes-for-professionals",1795895079,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":8,"category_name":30,"create_tm":215},760094,"IntelliJ IDEA Installation Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495509/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=lxN3YHaWLcpMv9hCOSLnbcbtbc4%3D","intellij-idea-installation-guide",1795898502]