国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > WEB開發 > 正文

Node.js初體驗 Kali安裝Node.js

2024-04-27 15:15:59
字體:
來源:轉載
供稿:網友

背景:偶然看到node.js開發微信公眾號的視頻,有些好奇,想要接觸下。然后花了兩個小時在實驗樓網站上在線學習了javaScript的基礎知識,以及Node.js的基礎

接著本著從實踐出發的原則 先去本地kali下安裝個Node.js玩玩

下載地址:https://nodejs.org/en/download/

網頁最下面有提示:Note: Python 2.6 or 2.7 is required to build from source tarballs.  需要python 2.6或者2.7的環境

然后終端下 python -V 看了下版本 還好 正好是2.7的

結果表示網速不給力還是網站不給力的 硬是下載不成功 臉黑:(

然后發現還有一招 

Installing Node.js via package manager

使用安裝包管理器進行安裝 ,url: https://nodejs.org/en/download/package-manager/

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -sudo apt-get install -y nodejs

Alternatively, for Node.js v7:

運行下下面的命令就可以了

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -sudo apt-get install -y nodejs

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

sudo apt-get install -y build-essential

因為是kali的 基于Debian的

查了下版本 反正高于Debian7的 如果沒有的話 那只能裝下低版本的nodejs了

Debian Style Distributions

Two such examples that highlight this situation are the Debian Wheezy and Ubuntu PRecise releases. Both are still currently receiving security updates. However, the default versions of theC++ compilers that each ships with are not modern enough to build the current iterations of the V8 Javascript engine.

In order to get around this issue, we build the packages <= v6.x for Debian Wheezy withclang-3.4. Ubuntu Precise ships withclang-3.4 available, so we use that instead of GCC.

The current expectation for v7.x of Node is that going forward, it will require use of even newer parts of the C++ standard than v6.x did. This will in turn require a compiler newer than both thegcc that ships on these distributions and clang-3.4. For this reason,we do not support Wheezy or Precise on version 7.x of Node.

看下最終結果

至于如果使用源代碼進行編譯安裝的話

http://www.cnblogs.com/zhoulf/p/4042888.html 這里有篇文章可以進行參考


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 江西省| 绥阳县| 二手房| 霍山县| 江达县| 同德县| 温州市| 灯塔市| 林芝县| 东海县| 永善县| 长宁区| 临高县| 绵竹市| 阿城市| 南宁市| 米泉市| 民和| 玛曲县| 金昌市| 六枝特区| 汾阳市| 安塞县| 苍梧县| 南川市| 湖州市| 奉化市| 抚顺县| 丰顺县| 罗源县| 资源县| 富源县| 色达县| 蒲城县| 永德县| 潜山县| 六枝特区| 铜鼓县| 永川市| 台湾省| 五家渠市|