下载资源前端资源详情
nvm-master.zip
大小:452.35KB
价格:10积分
下载量:0
评分:
5.0
上传者:weixin_43934792
更新日期:2025-09-22

mac版本下的nvm包

资源文件列表(大概)

文件名
大小
nvm-master/
-
nvm-master/.dockerignore
155B
nvm-master/.editorconfig
658B
nvm-master/.gitattributes
19B
nvm-master/.github/
-
nvm-master/.github/FUNDING.yml
574B
nvm-master/.github/ISSUE_TEMPLATE.md
1.05KB
nvm-master/.github/SECURITY.md
1.21KB
nvm-master/.github/THREAT_MODEL.md
8.54KB
nvm-master/.github/external-threat-actor.png
134.18KB
nvm-master/.github/insider-threat-actor-and-libs.png
54.75KB
nvm-master/.github/workflows/
-
nvm-master/.github/workflows/latest-npm.yml
1.98KB
nvm-master/.github/workflows/lint.yml
1.94KB
nvm-master/.github/workflows/nvm-install-test.yml
3.33KB
nvm-master/.github/workflows/rebase.yml
489B
nvm-master/.github/workflows/release.yml
1.02KB
nvm-master/.github/workflows/require-allow-edits.yml
465B
nvm-master/.github/workflows/shellcheck.yml
1.36KB
nvm-master/.github/workflows/tests.yml
2.06KB
nvm-master/.github/workflows/toc.yml
984B
nvm-master/.github/workflows/windows-npm.yml
6.04KB
nvm-master/.gitignore
277B
nvm-master/.gitmodules
103B
nvm-master/.mailmap
51B
nvm-master/.npmrc
19B
nvm-master/.travis.yml
3.59KB
nvm-master/CODE_OF_CONDUCT.md
7.38KB
nvm-master/CONTRIBUTING.md
4.63KB
nvm-master/Dockerfile
3.52KB
nvm-master/GOVERNANCE.md
467B
nvm-master/LICENSE.md
1.09KB
nvm-master/Makefile
5.31KB
nvm-master/PROJECT_CHARTER.md
2.87KB
nvm-master/README.md
47.07KB
nvm-master/ROADMAP.md
882B
nvm-master/bash_completion
2.25KB
nvm-master/install.sh
16.17KB
nvm-master/nvm-exec
371B
nvm-master/nvm.sh
145.97KB
nvm-master/package.json
2.86KB
nvm-master/rename_test.sh
1.21KB
nvm-master/test/
-
nvm-master/test/common.sh
5.07KB
nvm-master/test/fast/
-
nvm-master/test/fast/Aliases/
-
nvm-master/test/fast/Aliases/'nvm alias' should ignore leading blank lines in the file
456B
nvm-master/test/fast/Aliases/'nvm alias' should not accept aliases with a hash
1.32KB
nvm-master/test/fast/Aliases/'nvm alias' should not accept aliases with slashes
1.29KB
nvm-master/test/fast/Aliases/'nvm unalias' should accept aliases when they shadow a built-in alias
658B
nvm-master/test/fast/Aliases/'nvm unalias' should not accept aliases with names equal to built-in alias
1.25KB
nvm-master/test/fast/Aliases/'nvm unalias' should not accept aliases with slashes
1.28KB
nvm-master/test/fast/Aliases/Running 'nvm alias ˂aliasname˃ ˂target˃' again should change the target
864B
nvm-master/test/fast/Aliases/Running 'nvm alias ˂aliasname˃' should list but one alias
75B
nvm-master/test/fast/Aliases/Running 'nvm alias' lists implicit aliases when they do not exist
1.22KB
nvm-master/test/fast/Aliases/Running 'nvm alias' lists manual aliases instead of implicit aliases when present
1.63KB
nvm-master/test/fast/Aliases/Running 'nvm alias' should list all aliases
2.99KB
nvm-master/test/fast/Aliases/circular/
-
nvm-master/test/fast/Aliases/circular/nvm_resolve_alias
1.62KB
nvm-master/test/fast/Aliases/circular/nvm_resolve_local_alias
1.67KB
nvm-master/test/fast/Aliases/circular/setup
193B
nvm-master/test/fast/Aliases/circular/teardown
161B
nvm-master/test/fast/Aliases/lts/
-
nvm-master/test/fast/Aliases/lts/'nvm alias' should ensure LTS alias dir exists
355B
nvm-master/test/fast/Aliases/lts/setup_dir
191B
nvm-master/test/fast/Aliases/lts/teardown_dir
195B
nvm-master/test/fast/Aliases/nvm_ensure_default_set
695B
nvm-master/test/fast/Aliases/nvm_list_aliases calls nvm_get_colors
514B
nvm-master/test/fast/Aliases/nvm_list_aliases works with LTS aliases
720B
nvm-master/test/fast/Aliases/nvm_list_aliases works with no LTS aliases present
375B
nvm-master/test/fast/Aliases/nvm_print_alias_path calls nvm_get_colors
647B
nvm-master/test/fast/Aliases/nvm_print_formatted_alias calls nvm_get_colors
648B
nvm-master/test/fast/Aliases/nvm_resolve_alias
1.62KB
nvm-master/test/fast/Aliases/nvm_resolve_local_alias
1.51KB
nvm-master/test/fast/Aliases/setup
334B
nvm-master/test/fast/Aliases/teardown
492B
nvm-master/test/fast/Listing paths/
-
nvm-master/test/fast/Listing paths/Running 'nvm which 0.0.2' should display only version 0.0.2
854B
nvm-master/test/fast/Listing paths/Running 'nvm which foo' should return a nonzero exit code when not found
78B
nvm-master/test/fast/Listing paths/teardown
71B
nvm-master/test/fast/Listing versions/
-
nvm-master/test/fast/Listing versions/Running 'nvm ls --no-alias' does not call into nvm_alias
896B
nvm-master/test/fast/Listing versions/Running 'nvm ls --no-alias' with a pattern errors
500B
nvm-master/test/fast/Listing versions/Running 'nvm ls 0.0.2' should display only version 0.0.2
411B
nvm-master/test/fast/Listing versions/Running 'nvm ls 0.2' should display only 0.2.x versions
861B
nvm-master/test/fast/Listing versions/Running 'nvm ls foo' should return a nonzero exit code when not found
73B
nvm-master/test/fast/Listing versions/Running 'nvm ls io' should return NA
56B
nvm-master/test/fast/Listing versions/Running 'nvm ls node_' should return a nonzero exit code when not found
59B
nvm-master/test/fast/Listing versions/Running 'nvm ls stable' and 'nvm ls unstable' should return the appropriate implicit alias
902B
nvm-master/test/fast/Listing versions/Running 'nvm ls system' should include 'system' when appropriate
558B
nvm-master/test/fast/Listing versions/Running 'nvm ls' calls into nvm_alias
890B
nvm-master/test/fast/Listing versions/Running 'nvm ls' should display all installed versions
1.24KB
nvm-master/test/fast/Listing versions/Running 'nvm ls' should filter out '.nvm'
192B
nvm-master/test/fast/Listing versions/Running 'nvm ls' should filter out 'versions'
199B
nvm-master/test/fast/Listing versions/Running 'nvm ls' should include 'system' when appropriate
530B
nvm-master/test/fast/Listing versions/Running 'nvm ls' should list versions in the 'versions' directory
320B
nvm-master/test/fast/Listing versions/Running 'nvm ls' should not show a trailing slash
819B
nvm-master/test/fast/Listing versions/Running 'nvm ls' with node-like versioning vx.x.x should only list a matched version
188B
nvm-master/test/fast/Listing versions/Running 'nvm ls' with nounset should not fail
622B
nvm-master/test/fast/Listing versions/Using a nonstandard IFS should not break
297B
nvm-master/test/fast/Listing versions/teardown
384B
nvm-master/test/fast/Running 'nvm alias' should create a file in the alias directory
146B
nvm-master/test/fast/Running 'nvm current' should display current nvm environment
266B
nvm-master/test/fast/Running 'nvm deactivate' should unset the nvm environment variables
1010B
nvm-master/test/fast/Running 'nvm install' with '--reinstall-packages-from' requires a valid version
2.49KB
nvm-master/test/fast/Running 'nvm install' with an invalid version fails nicely
412B
nvm-master/test/fast/Running 'nvm unalias' should remove the alias file
147B
nvm-master/test/fast/Running 'nvm uninstall' should remove the appropriate directory
116B
nvm-master/test/fast/Running 'nvm uninstall' with incorrect file permissions fails nicely
320B
nvm-master/test/fast/Running 'nvm unload' should unset all function and variables
723B
nvm-master/test/fast/Running 'nvm use foo' where 'foo' is circular aborts
992B
nvm-master/test/fast/Running 'nvm use iojs' uses latest io.js version
1KB
nvm-master/test/fast/Running 'nvm use system' should work as expected
1.52KB
nvm-master/test/fast/Running 'nvm use x' should create and change the 'current' symlink
770B
nvm-master/test/fast/Running 'nvm use x' should not create the 'current' symlink if $NVM_SYMLINK_CURRENT is false
1.98KB
nvm-master/test/fast/Running 'nvm use' should drop CR char automatically
512B
nvm-master/test/fast/Set Colors/
-
nvm-master/test/fast/Set Colors/nvm_echo_with_colors
342B
nvm-master/test/fast/Set Colors/nvm_err_with_colors
331B
nvm-master/test/fast/Set Colors/nvm_print_default_alias calls nvm_get_colors
581B
nvm-master/test/fast/Set Colors/nvm_print_versions calls nvm_get_colors
1.07KB
nvm-master/test/fast/Sourcing nvm.sh should make the nvm command available
41B
nvm-master/test/fast/Sourcing nvm.sh should not modify parameters of caller
62B
nvm-master/test/fast/Unit tests/
-
nvm-master/test/fast/Unit tests/Running 'nvm install --save' works as expected'
1.33KB
nvm-master/test/fast/Unit tests/Running 'nvm use --save' works as expected'
1.32KB
nvm-master/test/fast/Unit tests/Running 'nvm use --save' works with a .nvmrc in the parent dir
1.17KB
nvm-master/test/fast/Unit tests/Running 'nvm use --silent --save' doesn't output anything
1.21KB
nvm-master/test/fast/Unit tests/mocks/
-
nvm-master/test/fast/Unit tests/mocks/LTS_names.txt
64B
nvm-master/test/fast/Unit tests/mocks/iojs.org-dist-index.tab
7.22KB
nvm-master/test/fast/Unit tests/mocks/lts-star.txt
9B
nvm-master/test/fast/Unit tests/mocks/nodejs.org-dist-index.tab
160.78KB
nvm-master/test/fast/Unit tests/mocks/nodejs.org-download-nightly-index.tab
105.08KB
nvm-master/test/fast/Unit tests/mocks/nvm ls-remote iojs.txt
656B
nvm-master/test/fast/Unit tests/mocks/nvm ls-remote lts.txt
9KB
nvm-master/test/fast/Unit tests/mocks/nvm ls-remote node.txt
16.79KB
nvm-master/test/fast/Unit tests/mocks/nvm ls-remote.txt
17.43KB
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote LTS argon.txt
470B
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote LTS nightly argon.txt
4B
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote LTS nightly.txt
259B
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote LTS.txt
3.23KB
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote nightly.txt
1.7KB
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote stable nightly.txt
34B
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote stable.txt
8B
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote.txt
7.08KB
nvm-master/test/fast/Unit tests/mocks/nvm_ls_remote_iojs.txt
492B
nvm-master/test/fast/Unit tests/mocks/nvm_make_alias LTS alias calls.txt
192B
nvm-master/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable nightly.txt
5B
nvm-master/test/fast/Unit tests/mocks/nvm_print_implicit_alias remote stable.txt
5B
nvm-master/test/fast/Unit tests/mocks/project_dirs/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/node_modules/foo/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/node_modules/foo/bar/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/node_modules/foo/bar/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested-pkg/node_modules/foo/package.json
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/node_modules/foo/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/node_modules/foo/bar/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/inside-n_m-nested/node_modules/foo/bar/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/a/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/c/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/c/d/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/a/b/c/d/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/node_modules/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-both/package.json
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/c/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/c/d/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/a/b/c/d/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-n_m/node_modules/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/c/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/c/d/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/a/b/c/d/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/nested-pkg/package.json
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-both/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-both/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-both/node_modules/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-both/package.json
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-n_m/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-n_m/node_modules/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-n_m/node_modules/.gitkeep
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-pkg/
-
nvm-master/test/fast/Unit tests/mocks/project_dirs/no-nesting-pkg/package.json
-
nvm-master/test/fast/Unit tests/nvm install -b
425B
nvm-master/test/fast/Unit tests/nvm install with nonlowercase LTS name
860B
nvm-master/test/fast/Unit tests/nvm ls-remote
2.59KB
nvm-master/test/fast/Unit tests/nvm set_colors
1.84KB
nvm-master/test/fast/Unit tests/nvm version-remote
2.22KB
nvm-master/test/fast/Unit tests/nvm_add_iojs_prefix
408B
nvm-master/test/fast/Unit tests/nvm_alias
1.01KB
nvm-master/test/fast/Unit tests/nvm_alias LTS-N
692B
nvm-master/test/fast/Unit tests/nvm_alias_path
164B
nvm-master/test/fast/Unit tests/nvm_change_path
2.11KB
nvm-master/test/fast/Unit tests/nvm_check_for_help
306B
nvm-master/test/fast/Unit tests/nvm_clang_version
1.57KB
nvm-master/test/fast/Unit tests/nvm_command_info
1.83KB
nvm-master/test/fast/Unit tests/nvm_compare_checksum
2.66KB
nvm-master/test/fast/Unit tests/nvm_compute_checksum
811B
nvm-master/test/fast/Unit tests/nvm_curl_libz_support
1.22KB
nvm-master/test/fast/Unit tests/nvm_curl_use_compression
1.71KB
nvm-master/test/fast/Unit tests/nvm_curl_version
865B
nvm-master/test/fast/Unit tests/nvm_die_on_prefix
10.43KB
nvm-master/test/fast/Unit tests/nvm_download
1.25KB
nvm-master/test/fast/Unit tests/nvm_download_artifact
1.99KB
nvm-master/test/fast/Unit tests/nvm_ensure_default_set
523B
nvm-master/test/fast/Unit tests/nvm_ensure_version_installed
3.2KB
nvm-master/test/fast/Unit tests/nvm_ensure_version_prefix
639B
nvm-master/test/fast/Unit tests/nvm_extract_tarball
863B
nvm-master/test/fast/Unit tests/nvm_find_project_dir
1.45KB
nvm-master/test/fast/Unit tests/nvm_find_up
907B
nvm-master/test/fast/Unit tests/nvm_format_version
655B
nvm-master/test/fast/Unit tests/nvm_get_arch
2.15KB
nvm-master/test/fast/Unit tests/nvm_get_arch_unofficial
2.6KB
nvm-master/test/fast/Unit tests/nvm_get_artifact_compression
661B
nvm-master/test/fast/Unit tests/nvm_get_checksum
1.19KB
nvm-master/test/fast/Unit tests/nvm_get_checksum_alg
272B
nvm-master/test/fast/Unit tests/nvm_get_checksum_binary
399B
nvm-master/test/fast/Unit tests/nvm_get_colors
3.07KB
nvm-master/test/fast/Unit tests/nvm_get_default_packages
2.01KB
nvm-master/test/fast/Unit tests/nvm_get_download_slug
4.3KB
nvm-master/test/fast/Unit tests/nvm_get_latest missing curl or wget
455B
nvm-master/test/fast/Unit tests/nvm_get_minor_version
1023B
nvm-master/test/fast/Unit tests/nvm_get_mirror
1.96KB
nvm-master/test/fast/Unit tests/nvm_has
352B
nvm-master/test/fast/Unit tests/nvm_has_non_aliased
840B
nvm-master/test/fast/Unit tests/nvm_has_solaris_binary
963B
nvm-master/test/fast/Unit tests/nvm_has_system_iojs
375B
nvm-master/test/fast/Unit tests/nvm_has_system_node
354B
nvm-master/test/fast/Unit tests/nvm_install_binary_extract
1.72KB
nvm-master/test/fast/Unit tests/nvm_install_binary_nosource
953B
nvm-master/test/fast/Unit tests/nvm_install_latest_npm
1.31KB
nvm-master/test/fast/Unit tests/nvm_install_no_progress_bar
2.54KB
nvm-master/test/fast/Unit tests/nvm_iojs_prefix
178B
nvm-master/test/fast/Unit tests/nvm_iojs_version_has_solaris_binary
596B
nvm-master/test/fast/Unit tests/nvm_is_alias
520B
nvm-master/test/fast/Unit tests/nvm_is_iojs_version
381B
nvm-master/test/fast/Unit tests/nvm_is_merged_node_version
426B
nvm-master/test/fast/Unit tests/nvm_is_natural_num
591B
nvm-master/test/fast/Unit tests/nvm_is_valid_version
625B
nvm-master/test/fast/Unit tests/nvm_is_version_installed
1.48KB
nvm-master/test/fast/Unit tests/nvm_ls_current
1.5KB
nvm-master/test/fast/Unit tests/nvm_ls_remote
2.73KB
nvm-master/test/fast/Unit tests/nvm_ls_remote LTS aliases
1.23KB
nvm-master/test/fast/Unit tests/nvm_ls_remote nightly
2.57KB
nvm-master/test/fast/Unit tests/nvm_ls_remote_iojs
1.03KB
nvm-master/test/fast/Unit tests/nvm_make_alias
770B
nvm-master/test/fast/Unit tests/nvm_node_prefix
178B
nvm-master/test/fast/Unit tests/nvm_node_version_has_solaris_binary
1.15KB
nvm-master/test/fast/Unit tests/nvm_normalize_lts
1.11KB
nvm-master/test/fast/Unit tests/nvm_num_version_groups
1.13KB
nvm-master/test/fast/Unit tests/nvm_print_alias_path
1.53KB
nvm-master/test/fast/Unit tests/nvm_print_color_code
644B
nvm-master/test/fast/Unit tests/nvm_print_default_alias
1.24KB
nvm-master/test/fast/Unit tests/nvm_print_implicit_alias errors
1.35KB
nvm-master/test/fast/Unit tests/nvm_print_implicit_alias success
3.24KB
nvm-master/test/fast/Unit tests/nvm_print_npm_version
623B
nvm-master/test/fast/Unit tests/nvm_process_nvmrc
1.2KB
nvm-master/test/fast/Unit tests/nvm_remote_version
3.11KB
nvm-master/test/fast/Unit tests/nvm_remote_versions
3.23KB
nvm-master/test/fast/Unit tests/nvm_stdout_is_terminal
1.76KB
nvm-master/test/fast/Unit tests/nvm_strip_iojs_prefix
521B
nvm-master/test/fast/Unit tests/nvm_strip_path
943B
nvm-master/test/fast/Unit tests/nvm_supports_xz
884B
nvm-master/test/fast/Unit tests/nvm_tree_contains_path
1021B
nvm-master/test/fast/Unit tests/nvm_use_if_needed
496B
nvm-master/test/fast/Unit tests/nvm_validate_implicit_alias
1.02KB
nvm-master/test/fast/Unit tests/nvm_version
1.82KB
nvm-master/test/fast/Unit tests/nvm_version_dir
608B
nvm-master/test/fast/Unit tests/nvm_version_greater
387B
nvm-master/test/fast/Unit tests/nvm_version_path
692B
nvm-master/test/fast/Unit tests/nvm_wrap_with_color_code
1B
nvm-master/test/fast/Unit tests/nvm_write_nvmrc
1.71KB
nvm-master/test/fast/nvm should remove the last trailing slash in $NVM_DIR
395B
nvm-master/test/fast/setup
189B
nvm-master/test/fast/setup_dir
195B
nvm-master/test/fast/teardown
196B
nvm-master/test/fast/teardown_dir
157B
nvm-master/test/fixtures/
-
nvm-master/test/fixtures/nvmrc/
-
nvm-master/test/install_script/
-
nvm-master/test/install_script/install_nvm_from_git
4.03KB
nvm-master/test/install_script/nvm_check_global_modules
2KB
nvm-master/test/install_script/nvm_detect_profile
3.94KB
nvm-master/test/install_script/nvm_do_install
645B
nvm-master/test/install_script/nvm_download
527B
nvm-master/test/install_script/nvm_install_dir
677B
nvm-master/test/install_script/nvm_install_with_aliased_dot
454B
nvm-master/test/install_script/nvm_install_with_node_version
303B
nvm-master/test/install_script/nvm_profile_is_bash_or_zsh
817B
nvm-master/test/install_script/nvm_reset
1.34KB
nvm-master/test/install_script/nvm_source
3.04KB
nvm-master/test/installation_iojs/
-
nvm-master/test/installation_iojs/install already installed uses it
1007B
nvm-master/test/installation_iojs/install from binary
996B
nvm-master/test/installation_iojs/install from source
664B
nvm-master/test/installation_iojs/install two versions and use the latest one
924B
nvm-master/test/installation_iojs/install version specified in .nvmrc from binary
652B
nvm-master/test/installation_iojs/install version specified in .nvmrc from source
632B
nvm-master/test/installation_iojs/install while reinstalling packages
1.13KB
nvm-master/test/installation_iojs/nvm install v1 works
679B
nvm-master/test/installation_iojs/setup_dir
62B
nvm-master/test/installation_iojs/teardown_dir
243B
nvm-master/test/installation_node/
-
nvm-master/test/installation_node/default-packages
2.6KB
nvm-master/test/installation_node/install LTS
1.16KB
nvm-master/test/installation_node/install already installed uses it
705B
nvm-master/test/installation_node/install from binary
678B
nvm-master/test/installation_node/install from binary with binary flag set
1.51KB
nvm-master/test/installation_node/install from source
834B
nvm-master/test/installation_node/install from source with thread parameter
950B
nvm-master/test/installation_node/install from source without V8 snapshot for ARM
762B
nvm-master/test/installation_node/install hook
1.37KB
nvm-master/test/installation_node/install latest npm
2.38KB
nvm-master/test/installation_node/install on bash with ERR trap and set -E
1005B
nvm-master/test/installation_node/install two versions and use the latest one
682B
nvm-master/test/installation_node/install version specified in .nvmrc from binary
510B
nvm-master/test/installation_node/install while reinstalling packages
1.53KB
nvm-master/test/installation_node/install with --alias
244B
nvm-master/test/installation_node/install with --default
251B
nvm-master/test/installation_node/install with --latest-npm
269B
nvm-master/test/installation_node/setup_dir
62B
nvm-master/test/installation_node/teardown_dir
268B
nvm-master/test/mocks/
-
nvm-master/test/mocks/isainfo_amd64
70B
nvm-master/test/mocks/isainfo_x86
63B
nvm-master/test/mocks/pkg_info_amd64
153B
nvm-master/test/mocks/pkg_info_fail
7B
nvm-master/test/mocks/pkg_info_x86
12B
nvm-master/test/mocks/uname_linux_armv8l
157B
nvm-master/test/mocks/uname_osx_amd64
188B
nvm-master/test/mocks/uname_osx_x86
182B
nvm-master/test/mocks/uname_smartos_amd64
123B
nvm-master/test/mocks/uname_smartos_x86
123B
nvm-master/test/slow/
-
nvm-master/test/slow/Running 'nvm current' should display current nvm environment
203B
nvm-master/test/slow/nvm exec/
-
nvm-master/test/slow/nvm exec/Preamble works and respects 'silent' flag
1.24KB
nvm-master/test/slow/nvm exec/Running 'nvm exec --lts' should work
549B
nvm-master/test/slow/nvm exec/Running 'nvm exec 0.x' should work
500B
nvm-master/test/slow/nvm exec/Running 'nvm exec' should pick up .nvmrc version
506B
nvm-master/test/slow/nvm exec/Running 'nvm exec' with help should not parse
206B
nvm-master/test/slow/nvm exec/setup_dir
137B
nvm-master/test/slow/nvm exec/teardown_dir
175B
nvm-master/test/slow/nvm reinstall-packages/
-
nvm-master/test/slow/nvm reinstall-packages/Running 'nvm copy-packages $(nvm ls current)' should error out
767B
nvm-master/test/slow/nvm reinstall-packages/setup_dir
158B
nvm-master/test/slow/nvm reinstall-packages/should work as expected
1.38KB
nvm-master/test/slow/nvm reinstall-packages/teardown_dir
188B
nvm-master/test/slow/nvm reinstall-packages/test-npmlink/
-
nvm-master/test/slow/nvm reinstall-packages/test-npmlink/index.js
38B
nvm-master/test/slow/nvm reinstall-packages/test-npmlink/package.json
191B
nvm-master/test/slow/nvm reinstall-packages/works with no installs
460B
nvm-master/test/slow/nvm run/
-
nvm-master/test/slow/nvm run/Running 'nvm run --harmony --version' should work
258B
nvm-master/test/slow/nvm run/Running 'nvm run --lts' should work
579B
nvm-master/test/slow/nvm run/Running 'nvm run 0.x' should error out sensibly when 0.x is not installed
602B
nvm-master/test/slow/nvm run/Running 'nvm run 0.x' should work
180B
nvm-master/test/slow/nvm run/Running 'nvm run' should pick up .nvmrc version
917B
nvm-master/test/slow/nvm run/setup_dir
144B
nvm-master/test/slow/nvm run/teardown_dir
181B
nvm-master/test/slow/nvm uninstall/
-
nvm-master/test/slow/nvm uninstall/Running 'nvm uninstall 0.12.6' uninstalls v0.12.6
739B
nvm-master/test/slow/nvm uninstall/Running 'nvm uninstall' with incorrect file permissions fails nicely
849B
nvm-master/test/slow/nvm uninstall/setup_dir
49B
nvm-master/test/slow/nvm uninstall/teardown_dir
66B
nvm-master/test/slow/nvm use/
-
nvm-master/test/slow/nvm use/Running 'nvm use --lts' uses latest LTS version
567B
nvm-master/test/slow/nvm use/Running 'nvm use --lts=foo' uses latest 'foo' LTS version
613B
nvm-master/test/slow/nvm use/Running 'nvm use iojs' uses latest io.js version
536B
nvm-master/test/slow/nvm use/Running 'nvm use lts' shows actionable error
572B
nvm-master/test/slow/nvm use/Running 'nvm use node --silent' doesn't print anything
338B
nvm-master/test/slow/nvm use/Running 'nvm use node' uses latest stable node version
546B
nvm-master/test/slow/nvm use/Running 'nvm use v1.0.0' uses iojs-v1.0.0 iojs version
560B
nvm-master/test/slow/nvm use/Running 'nvm use' calls 'nvm_die_on_prefix'
642B
nvm-master/test/slow/nvm use/Running 'nvm use' with nvmrc containing not installed version
881B
nvm-master/test/slow/nvm use/setup_dir
530B
nvm-master/test/slow/nvm use/teardown_dir
519B
nvm-master/test/slow/nvm_get_latest/
-
nvm-master/test/slow/nvm_get_latest/nvm_get_latest
4.82KB
nvm-master/test/slow/nvm_get_latest/nvm_get_latest failed redirect
518B
nvm-master/test/sourcing/
-
nvm-master/test/sourcing/Sourcing nvm.sh global alias bug
863B
nvm-master/test/sourcing/Sourcing nvm.sh should keep version if one is active
629B
nvm-master/test/sourcing/Sourcing nvm.sh should use the default if available and no nvm node is loaded
1.15KB
nvm-master/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it
933B
nvm-master/test/sourcing/Sourcing nvm.sh with --install should install the default
1.18KB
nvm-master/test/sourcing/Sourcing nvm.sh with --no-use should not use anything
992B
nvm-master/test/sourcing/Sourcing nvm.sh with no default should return 0
314B
nvm-master/test/sourcing/setup_dir
373B
nvm-master/test/sourcing/teardown_dir
146B
nvm-master/test/xenial/
-
nvm-master/test/xenial/install from source
834B
nvm-master/test/xenial/install from source implicitly
587B
nvm-master/test/xenial/install from source with thread parameter
950B
nvm-master/test/xenial/install from source without V8 snapshot for ARM
762B
nvm-master/test/xenial/install hook
1.37KB
nvm-master/test/xenial/install version specified in .nvmrc from source
514B
nvm-master/test/xenial/node 0.6.21 should install 0.6.21-pre
324B
nvm-master/update_test_mocks.sh
2.42KB

资源内容介绍

mac版本下的nvm包
<a href="https://github.com/nvm-sh/logos"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nvm-sh/logos/HEAD/nvm-logo-white.svg" /> <img src="https://raw.githubusercontent.com/nvm-sh/logos/HEAD/nvm-logo-color.svg" height="50" alt="nvm project logo" /> </picture></a># Node Version Manager [![Build Status](https://app.travis-ci.com/nvm-sh/nvm.svg?branch=master)][3] [![nvm version](https://img.shields.io/badge/version-v0.40.1-yellow.svg)][4] [![CII Best Practices](https://bestpractices.dev/projects/684/badge)](https://bestpractices.dev/projects/684)<!-- To update this table of contents, ensure you have run `npm install` then `npm run doctoc` --><!-- START doctoc generated TOC please keep comment here to allow auto update --><!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->## Table of Contents- [Intro](#intro)- [About](#about)- [Installing and Updating](#installing-and-updating) - [Install & Update Script](#install--update-script) - [Additional Notes](#additional-notes) - [Troubleshooting on Linux](#troubleshooting-on-linux) - [Troubleshooting on macOS](#troubleshooting-on-macos) - [Ansible](#ansible) - [Verify Installation](#verify-installation) - [Important Notes](#important-notes) - [Git Install](#git-install) - [Manual Install](#manual-install) - [Manual Upgrade](#manual-upgrade)- [Usage](#usage) - [Long-term Support](#long-term-support) - [Migrating Global Packages While Installing](#migrating-global-packages-while-installing) - [Default Global Packages From File While Installing](#default-global-packages-from-file-while-installing) - [io.js](#iojs) - [System Version of Node](#system-version-of-node) - [Listing Versions](#listing-versions) - [Setting Custom Colors](#setting-custom-colors) - [Persisting custom colors](#persisting-custom-colors) - [Suppressing colorized output](#suppressing-colorized-output) - [Restoring PATH](#restoring-path) - [Set default node version](#set-default-node-version) - [Use a mirror of node binaries](#use-a-mirror-of-node-binaries) - [Pass Authorization header to mirror](#pass-authorization-header-to-mirror) - [.nvmrc](#nvmrc) - [Deeper Shell Integration](#deeper-shell-integration) - [Calling `nvm use` automatically in a directory with a `.nvmrc` file](#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file) - [bash](#bash) - [zsh](#zsh) - [fish](#fish)- [Running Tests](#running-tests)- [Environment variables](#environment-variables)- [Bash Completion](#bash-completion) - [Usage](#usage-1)- [Compatibility Issues](#compatibility-issues)- [Installing nvm on Alpine Linux](#installing-nvm-on-alpine-linux) - [Alpine Linux 3.13+](#alpine-linux-313) - [Alpine Linux 3.5 - 3.12](#alpine-linux-35---312)- [Uninstalling / Removal](#uninstalling--removal) - [Manual Uninstall](#manual-uninstall)- [Docker For Development Environment](#docker-for-development-environment)- [Problems](#problems)- [macOS Troubleshooting](#macos-troubleshooting)- [WSL Troubleshooting](#wsl-troubleshooting)- [Maintainers](#maintainers)- [Project Support](#project-support)- [Enterprise Support](#enterprise-support)- [License](#license)- [Copyright notice](#copyright-notice)<!-- END doctoc generated TOC please keep comment here to allow auto update -->## Intro`nvm` allows you to quickly install and use different versions of node via the command line.**Example:**```sh$ nvm use 16Now using node v16.9.1 (npm v7.21.1)$ node -vv16.9.1$ nvm use 14Now using node v14.18.0 (npm v6.14.15)$ node -vv14.18.0$ nvm install 12Now using node v12.22.6 (npm v6.14.5)$ node -vv12.22.6```Simple as that!## Aboutnvm is a version manager for [node.js](https://nodejs.org/en/), designed to be installed per-user, and invoked per-shell. `nvm` works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and [windows WSL](https://github.com/nvm-sh/nvm#important-notes).<a id="installation-and-update"></a><a id="install-script"></a>## Installing and Updating### Install & Update ScriptTo **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:```shcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash``````shwget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash```Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).<a id="profile_snippet"></a>```shexport NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm```#### Additional Notes- If the environment variable `$XDG_CONFIG_HOME` is present, it will place the `nvm` files there.</sub>- You can add `--no-use` to the end of the above script (...`nvm.sh --no-use`) to postpone using `nvm` until you manually [`use`](#usage) it.- You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.Eg: `curl ... | NVM_DIR="path/to/nvm"`. Ensure that the `NVM_DIR` does not contain a trailing slash.- The installer can use `git`, `curl`, or `wget` to download `nvm`, whichever is available.- You can instruct the installer to not edit your shell config (for example if you already get completions via a [zsh nvm plugin](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/nvm)) by setting `PROFILE=/dev/null` before running the `install.sh` script. Here's an example one-line command to do that: `PROFILE=/dev/null bash -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash'`#### Troubleshooting on LinuxOn Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type `command -v nvm`, simply close your current terminal, open a new terminal, and try verifying again.Alternatively, you can run the following commands for the different shells on the command line:*bash*: `source ~/.bashrc`*zsh*: `source ~/.zshrc`*ksh*: `. ~/.profile`These should pick up the `nvm` command.#### Troubleshooting on macOSSince OS X 10.9, `/usr/bin/git` has been preset by Xcode command line tools, which means we can't properly detect if Git is installed or not. You need to manually install the Xcode command line tools before running the install script, otherwise, it'll fail. (see [#1782](https://github.com/nvm-sh/nvm/issues/1782))If you get `nvm: command not found` after running the install script, one of the following might be the reason: - Since macOS 10.15, the default shell is `zsh` and nvm will look for `.zshrc` to update, none is installed by default. Create one with `touch ~/.zshrc` and run the install script again. - If you use bash, the previous default shell, your system may not have `.bash_profile` or `.bashrc` files where the command is set up. Create one of them with `touch ~/.bash_profile` or `touch ~/.bashrc` and run the install script again. Then, run `. ~/.bash_profile` or `. ~/.bashrc` to pick up the `nvm` command. - You have previously used `bash`, but you have `zsh` installed. You need to manually add [these lines](#manual-install) to `~/.zshrc` and run `. ~/.zshrc`. - You might need to restart your terminal instance or run `. ~/.nvm/nvm.sh`. Restarting your terminal/opening a new tab/window, or running the source command will load the command and the new configuration. - If the above didn't help, you might need to restart your terminal instance. Try o

用户评论 (0)

发表评论

captcha