w3school node.js教程 & 官方api文档 飞龙整理 20141026

所需积分/C币:13 2014-10-26 15:50:08 4.41MB PDF
收藏 收藏
举报

w3school node.js教程 & 官方api文档 飞龙整理 20141026
根据不同平台系统选择你需要的 Node s安装包 注意: Linux上安装 Node. js需要安装 Python26或27,不建议安装 Python3.0以上版本 Window上安装 Node. js Windows安装包(msi): 32位安装包下载地址:htte:/ nodes.org/dist0.10.26/node-V0.10.26-X86msi 64位安装包下载地址:ht:/ nodes. org/dist0.10.26/×64/node-V0.10.26-X64msi 安装步骤: 步骤1:双击下载后的安装包node-V0.10.26-×86ms,如下所示 Open File-Security Warning Do you want to run this file? Name: E: \download\node- v0. 10. 26-X86 msi Publisher: Joyent Inc Type: Windows Installer Package From: E:\download\node -v0. 10.26-x 86 msi RunCancel V Aways ask before opening this file ile files from the intemet can be useful, this file type can potentially ham your computer. Only run software from publishers you trust. What s the risk? 步骤2:点击以上的Run(运行),将出现如下界面: 虑 Node. js Setup X Welcome to the Node js setup wizard Next to continue or Cancel to exit the Setup war er. Click The Setup Wizard will install Node js on your compute Back Next ancel 步骤3:勾选接受协议选项,点击next(下一步)按钮 虑 Node. js Setup X End-User License Agreement Please read the following license agreement carefully Node's license follows. Copyright Joyent, Inc and other Node contributors. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions I accept the terms in the License Agreement Pit(Bk」 Next Cancel 步骤4:Node」js默认安装目录为"C: Program Filesinodejs",你可以修改目录,并点击next(下 步) 诗 Node js Setup Destination folder Choose a custom location or dick Next to install nde间 Install Node, js to IC: Program Files nodes Change Back Cancel 步骤5:点击树形图标米选择你需要的安装模式,然后点击下一步next(下一步) 虑 Node js Setup Custom Setup Select the way you want features to be installed Click the icons in the tree below to change the way features will be installed 4- Node. js runtime dd start menu entries that link the npm package manager the online documentation for Online documentation shortcuts Node. js 0. 10. 26 and the Node. js Add to path ebsite This feature requires 1KB on your hard drive Browse Reset Disk Usage Bad Next Cancel 步骤6:点 Ii Instal(安装)开始安装 Node js。你也可以点击Back(返回)来修改先前的配置。然后 并点击next(下一步): 虑 Node js Set Ready to install Node js ∧●de0 Click Install to begin the installation Click Back to review or change any of your nstallation settings. Click Cancel to exit the wizard Back Insta Cancel 安装过程: 虑 Node js Setup Installing Node js ∧de Please wait while the Setup Wizard installs Node. js. Status: Next Cancel 点击 Finish(完成)按钮退出安装向导 虑 J Node js Setup X Completed the Node js Setup Wizard de Click the Finish button to exit the Setup wizard Node js has been successfully installed Back F Cancel 检测PATH环境变量是否配置了 Node. js,点击开始=》运行=》输入"cm">输入命令"path",输出如 下结果: PATH=C: oraclexeapporacle\product 10.2.0\server\bin; C: \Windows \system32, C: Windows C: Windows\System32 \Wbem; C: Windows\ System32 Windows Power Shell\v1.0\; c: \python 32\python; C: \MinGw\bin; C: \Program Files\GTK2-Runtimelib, C: Program Files MysQl \My SQL Server 5.5\bin; C: \Program Files\nodejs\ C: Usersrg\AppData\ Roaming\npm 我们可以看到环境变量中已经包含了 C: \Program Files\nodes 检查 Node. js版本 E:\>node --version U.18.26 Windows二进制文件(exe)安装: 32位安装包下载地址:htt!/ nodes.org/ dist/vi0.10.26/node.exe 64位安装包下载地址:htt: nodes.org/ dist/y0.10.26/64/ node. exe 安装步骤 步骤1:双击下载的安装包 Node.exe,将出现如下界面 Open File-Security Warning Do you want to run this file? Name: E: \downloadnode. exe Publisher: Joyent Inc Type: Application From: E: \download\node. exe Run Cancel V Always ask before opening this file While files from the Intemet can be useful, this file type can potentially ham your computer. Onby run software from publishers you trust. What's the risk? 点击Run(运行)按钮将出现命令行窗凵: G EA\download\node.exe 版本测试 进入 node.exe所在的目录,如下所示 E:\>cd down load E:\down load>node verson 小.1.26 如果你获得以上输出结果,说明你已经成功安装了 Node. js Linux上安装 Node js Ubuntu安装 以下部分我们将介绍在 Ubuntu linux下安装 Node. js。其他的 Linux系统,如 Centos等类似如下安装步 骤 在 Github上获取 Node. js源码 itwikgritwik-pc:-ssudogitclonehttps://github.com/joyent/node.git ritwikaritwik-pc:-ssudogitclonehttps://github.com/joyent/node.git Cloning into 'node remote:Reusing existing pack: 121473, done remote: Counting objects: 49, done remote:Compressing objects: 100%(46/46),done Receiving objects: 8%(10851/121522),2.84 MiB I 32 KiB/s 在完成下载后,将源码包名改为'node itwikgritwik-pc:ssudogitclonehttps://github.com/joyent/node.git Cloning into 'node remote:Reusing existing pack: 121473, done remote:Counting objects: 49, done remote:Compressing objects: 100%(46/46),done remote:Total 121522(delta 13),reused 4(delta 3) Receiving objects: 100%(121522/121522),91.16 MiB I 34 KiB/s, done Resolving deltas: 100%(91075/91075),done Checking out files: 100%(9604/9604),done ritwikgritwik-pc:-SI 修改日录权限 itwikgritwik-pC: -s sudo chmod 755-R node 使用'/ configure'创建编译文件。 itwikaritwik-pc: -/nodes sudo./configure target defaults':[ 'cflags': [ default confiquration': ' Release 'defines:['OPENSSL NO SSL2=11 include_dirs: [ libraries:[], variables':['clang:0 gcc version:47, host arch': 'ia32. node install npm:true node prefi node shared cares':' false nodesharedhttp_parser':'false node shared libuy': false node shared openssl': 'false node shared v8':' false node shared z Lib': 'false, node tag node use dtrace': false i node use etw':' false' node use mdb':' false node use openssl':' true node use perfctr:' false node v8 options python:'/usr/bin/python target arch': ia32 uv library': 'static library 'UV_parent_path':' deps/uv/,, uv use dtrace': ' false v8 enable gdbjit':o v8 enable i18n support:o v8 no strict aliasing: v8 optimized debug: 0 v8 random seed': 0 v8 use snapshot: 'true' creating ./config. gypi creating./config. mk itwikaritwik-pc:-/nodes 编译:make

...展开详情
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
xiaoquan35 资源不错,谢谢分享
2018-06-22
回复
mogging 不错的资料, 排版还是一般般,要花点时间研究一下了
2015-07-11
回复
fenglinhonghong 辛苦了,超赞的参考资料
2015-02-01
回复
  • GitHub

    绑定GitHub第三方账户获取
  • 脉脉勋章

    绑定脉脉第三方账户获得
  • 技术圈认证(专家版)

    博客专家完成年度认证,即可获得
  • 至尊王者

    成功上传501个资源即可获取
关注 私信 TA的资源
上传资源赚积分or赚钱
最新推荐