/
home
/
techb158
/
.nvm
/
versions
/
node
/
v16.20.2
/
lib
/
node_modules
/
npm
/
man
/
man1
/
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1
mkdir
upload
Name
Size
Mode
Actions
npm-access.1
3647
0644
edit
dl
rm
npm-adduser.1
2486
0644
edit
dl
rm
npm-audit.1
15987
0644
edit
dl
rm
npm-bin.1
957
0644
edit
dl
rm
npm-bugs.1
3300
0644
edit
dl
rm
npm-cache.1
3139
0644
edit
dl
rm
npm-ci.1
10760
0644
edit
dl
rm
npm-completion.1
1001
0644
edit
dl
rm
npm-config.1
4176
0644
edit
dl
rm
npm-dedupe.1
9181
0644
edit
dl
rm
npm-deprecate.1
1895
0644
edit
dl
rm
npm-diff.1
9867
0644
edit
dl
rm
npm-dist-tag.1
5532
0644
edit
dl
rm
npm-docs.1
3283
0644
edit
dl
rm
npm-doctor.1
5052
0644
edit
dl
rm
npm-edit.1
1140
0644
edit
dl
rm
npm-exec.1
12396
0644
edit
dl
rm
npm-explain.1
2963
0644
edit
dl
rm
npm-explore.1
1075
0644
edit
dl
rm
npm-find-dupes.1
6828
0644
edit
dl
rm
npm-fund.1
3992
0644
edit
dl
rm
npm-help-search.1
865
0644
edit
dl
rm
npm-help.1
1075
0644
edit
dl
rm
npm-hook.1
2691
0644
edit
dl
rm
npm-init.1
10165
0644
edit
dl
rm
npm-install-ci-test.1
8845
0644
edit
dl
rm
npm-install-test.1
8921
0644
edit
dl
rm
npm-install.1
24814
0644
edit
dl
rm
npm-link.1
12253
0644
edit
dl
rm
npm-logout.1
1895
0644
edit
dl
rm
npm-ls.1
9099
0644
edit
dl
rm
npm-org.1
2286
0644
edit
dl
rm
npm-outdated.1
6445
0644
edit
dl
rm
npm-owner.1
3392
0644
edit
dl
rm
npm-pack.1
3861
0644
edit
dl
rm
npm-ping.1
844
0644
edit
dl
rm
npm-pkg.1
8354
0644
edit
dl
rm
npm-prefix.1
1325
0644
edit
dl
rm
npm-profile.1
4707
0644
edit
dl
rm
npm-prune.1
6114
0644
edit
dl
rm
npm-publish.1
7937
0644
edit
dl
rm
npm-query.1
5480
0644
edit
dl
rm
npm-rebuild.1
4801
0644
edit
dl
rm
npm-repo.1
3075
0644
edit
dl
rm
npm-restart.1
1698
0644
edit
dl
rm
npm-root.1
1159
0644
edit
dl
rm
npm-run-script.1
8159
0644
edit
dl
rm
npm-search.1
3926
0644
edit
dl
rm
npm-set-script.1
2679
0644
edit
dl
rm
npm-shrinkwrap.1
977
0644
edit
dl
rm
npm-star.1
1793
0644
edit
dl
rm
npm-stars.1
776
0644
edit
dl
rm
npm-start.1
1827
0644
edit
dl
rm
npm-stop.1
1457
0644
edit
dl
rm
npm-team.1
4422
0644
edit
dl
rm
npm-test.1
1369
0644
edit
dl
rm
npm-token.1
5264
0644
edit
dl
rm
npm-uninstall.1
4534
0644
edit
dl
rm
npm-unpublish.1
4769
0644
edit
dl
rm
npm-unstar.1
1639
0644
edit
dl
rm
npm-update.1
12495
0644
edit
dl
rm
npm-version.1
7708
0644
edit
dl
rm
npm-view.1
5749
0644
edit
dl
rm
npm-whoami.1
866
0644
edit
dl
rm
npm.1
5804
0644
edit
dl
rm
npx.1
6313
0644
edit
dl
rm
Edit:
/home/techb158/.nvm/versions/node/v16.20.2/lib/node_modules/npm/man/man1/npm-doctor.1
(5052B)
.TH "NPM\-DOCTOR" "1" "February 2023" "" "" .SH "NAME" \fBnpm-doctor\fR \- Check your npm environment .SS Synopsis .P .RS 2 .nf npm doctor .fi .RE .P Note: This command is unaware of workspaces\. .SS Description .P \fBnpm doctor\fP runs a set of checks to ensure that your npm installation has what it needs to manage your JavaScript packages\. npm is mostly a standalone tool, but it does have some basic requirements that must be met: .RS 0 .IP \(bu 2 Node\.js and git must be executable by npm\. .IP \(bu 2 The primary npm registry, \fBregistry\.npmjs\.com\fP, or another service that uses the registry API, is available\. .IP \(bu 2 The directories that npm uses, \fBnode_modules\fP (both locally and globally), exist and can be written by the current user\. .IP \(bu 2 The npm cache exists, and the package tarballs within it aren't corrupt\. .RE .P Without all of these working properly, npm may not work properly\. Many issues are often attributable to things that are outside npm's code base, so \fBnpm doctor\fP confirms that the npm installation is in a good state\. .P Also, in addition to this, there are also very many issue reports due to using old versions of npm\. Since npm is constantly improving, running \fBnpm@latest\fP is better than an old version\. .P \fBnpm doctor\fP verifies the following items in your environment, and if there are any recommended changes, it will display them\. .SS \fBnpm ping\fP .P By default, npm installs from the primary npm registry, \fBregistry\.npmjs\.org\fP\|\. \fBnpm doctor\fP hits a special ping endpoint within the registry\. This can also be checked with \fBnpm ping\fP\|\. If this check fails, you may be using a proxy that needs to be configured, or may need to talk to your IT staff to get access over HTTPS to \fBregistry\.npmjs\.org\fP\|\. .P This check is done against whichever registry you've configured (you can see what that is by running \fBnpm config get registry\fP), and if you're using a private registry that doesn't support the \fB/whoami\fP endpoint supported by the primary registry, this check may fail\. .SS \fBnpm \-v\fP .P While Node\.js may come bundled with a particular version of npm, it's the policy of the CLI team that we recommend all users run \fBnpm@latest\fP if they can\. As the CLI is maintained by a small team of contributors, there are only resources for a single line of development, so npm's own long\-term support releases typically only receive critical security and regression fixes\. The team believes that the latest tested version of npm is almost always likely to be the most functional and defect\-free version of npm\. .SS \fBnode \-v\fP .P For most users, in most circumstances, the best version of Node will be the latest long\-term support (LTS) release\. Those of you who want access to new ECMAscript features or bleeding\-edge changes to Node's standard library may be running a newer version, and some may be required to run an older version of Node because of enterprise change control policies\. That's OK! But in general, the npm team recommends that most users run Node\.js LTS\. .SS \fBnpm config get registry\fP .P You may be installing from private package registries for your project or company\. That's great! Others may be following tutorials or StackOverflow questions in an effort to troubleshoot problems you may be having\. Sometimes, this may entail changing the registry you're pointing at\. This part of \fBnpm doctor\fP just lets you, and maybe whoever's helping you with support, know that you're not using the default registry\. .SS \fBwhich git\fP .P While it's documented in the README, it may not be obvious that npm needs Git installed to do many of the things that it does\. Also, in some cases – especially on Windows – you may have Git set up in such a way that it's not accessible via your \fBPATH\fP so that npm can find it\. This check ensures that Git is available\. .SS Permissions checks .RS 0 .IP \(bu 2 Your cache must be readable and writable by the user running npm\. .IP \(bu 2 Global package binaries must be writable by the user running npm\. .IP \(bu 2 Your local \fBnode_modules\fP path, if you're running \fBnpm doctor\fP with a project directory, must be readable and writable by the user running npm\. .RE .SS Validate the checksums of cached packages .P When an npm package is published, the publishing process generates a checksum that npm uses at install time to verify that the package didn't get corrupted in transit\. \fBnpm doctor\fP uses these checksums to validate the package tarballs in your local cache (you can see where that cache is located with \fBnpm config get cache\fP)\. In the event that there are corrupt packages in your cache, you should probably run \fBnpm cache clean \-f\fP and reset the cache\. .SS Configuration .SS \fBregistry\fP .RS 0 .IP \(bu 2 Default: "https://registry\.npmjs\.org/" .IP \(bu 2 Type: URL .RE .P The base URL of the npm registry\. .SS See Also .RS 0 .IP \(bu 2 npm help bugs .IP \(bu 2 npm help help .IP \(bu 2 npm help ping .RE
Save
cmd:
run