美文网首页
nodejs 版本管理 nodist

nodejs 版本管理 nodist

作者: bobo_lee | 来源:发表于2017-06-21 11:29 被阅读0次

用过node的朋友都知道,node版本更新非常快,然而开发用到的node版本不一定会统一,为了保证环境一样,一个nodejs包管理非常重要。这种包管理器,需要不但能够快速简洁下载各个版本的node包,更加需要能够进行版本的切换。
笔者环境:windows10 64位
笔者适用了 nvm, nvm-windows,n,以及nodist

前三者都是虽然都用windows版本,但是其兼容性较差,在笔者环境中老是出现各种bug,一番折腾后,仍然不得解。时间就是生命,当用到nodist之后,感觉非常棒
附上链接:
https://github.com/marcelklehr/nodist

以下是nodist的命令,笔者默默做个笔记

nodist

Lists installed versions highlighting the active ones.

nodist global 4.x

Sets the global node version requirement

nodist local 4.x

Sets the node version requirement per directory (including all subdirectories).

nodist env 4.x

Sets the node version requirement per terminal.

nodist npm global 3.x

Set global npm version requirement.

nodist npm global match

Tell nodist to always choose the npm version that matches the current node version.
(the current node version may be determined by env, local or global requirements)

nodist npm local 2.x

Set the npm version requirement for the current directory.

nodist npm env 2.x

Set the npm version requirement for the current terminal environment.

call nodist env 4.x

In a batch script use call.

nodist dist

Lists all available node versions.

nodist + 4.x

Just checks, if the version is installed and installs it if not.

nodist + all

will install everything.

nodist - 4.1.1

Removes a version.

nodist --help

Displays a complete list of commands with examples.

相关文章

  • nodejs 版本管理 nodist

    用过node的朋友都知道,node版本更新非常快,然而开发用到的node版本不一定会统一,为了保证环境一样,一个n...

  • 安利一个14年撸的轮子 - Node.js 多版本管理器

    gnvm,是一个 windows 下 简单的 Node.js 多版本管理器,类似 nvmw | nodist 等。...

  • NodeJS 安装

    概念 NVM:Node Version Manager(Node版本管理器)管理NodeJS版本NodeJS:服务...

  • nvm-nodejs版本管理工具

    nvm nodejs版本管理-需要在多个nodejs版本切换时使用 下载nvm -> 安装 -> 配置全局变量 使...

  • nodejs 版本管理

    安装版本管理工具 安装 0.10.33 版本命令: 切换版本命令:

  • NodeJS 版本管理

    使用NodeJS的n模块进行版本管理 安装n模块 选择版本 安装完成之后,直接输入n后输出当前已经安装的node版...

  • nodejs版本管理

    一、安装n模块 npm install -g n 二、升级node.js到最新稳定版 n stable

  • nodejs版本管理

    无论你喜不喜欢复杂的node版本,该遇到的总会遇到的,与其以后遇到不如从现在起开始管理node版本. 安装 提示:...

  • Mac 安装nvm

    brew安装nvm nvm是nodejs版本管理器,在Mac下可方便安装多版本的nodejs。 nvm命令

  • Nodejs 与 NPM 版本管理

    1. Nodejs 版本管理工具 Nodejs普遍使用两种版本管理工具NVM 与 N,由于笔者比较喜爱MAC OS...

网友评论

      本文标题: nodejs 版本管理 nodist

      本文链接:https://www.haomeiwen.com/subject/eevzqxtx.html