【发布时间】:2016-07-14 06:04:15
【问题描述】:
GitHub 网站的新手,所以如何运行以下命令:
$ sudo apt-get install npm
在 Windows 环境中?
我安装了 Git Bash 并运行了上面的命令,但收到了 command not foundmessage。
如何开始?谢谢。
【问题讨论】:
-
这是在 Windows 上安装 npm 的方式:npmjs.com/package/npm#windows-install-or-upgrade
-
那么 GitHub 上的所有这些命令都适用于 Linux 吗?我没有安装 npm。这只是一个例子。
-
使用 apt-get 您可以在计算机上安装和管理软件。它被称为包管理系统。除了 apt 之外,还有更多,但 apt 用于 Debian,而 Debian 只是 linux 的一个发行版。也许维基百科有帮助:en.wikipedia.org/wiki/Advanced_Packaging_Tool
-
嗯?如何在 Windows 环境中运行所有这些命令,例如 '$ sudo apt-get install npm' '$ sudo npm install -g grunt-cli'?除了 Git Bash 我还需要什么?
-
据我所知 apt 在 Windows 上不可用。但也许这可以帮助你chocolatey.org