E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod/dists/xenial/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
12、这个示例代码用到nodejs 6.11.0 ,所以需要安装nodejs
在网站上看到如下信息,大概意思就是,默认安装的版本比较低,是4.2.6 ,想安装6.11.0,需要用其他方式,一个是PPA ,另一个就是NVM ,本人更喜欢NVM ,下面会使用NVM 作为安装方式。
Ubuntu 16.04 contains a version of Node.js in its default repositories that can be used to easily provide a consistent experience across multiple systems. At the time of writing, the version in the repositories is v4.2.6. This will not be the latest version, but it should be quite stable, and should be sufficient for quick experimentation with the language.
不解释了,直接上命令: