How to handle the issue of node.js msi to roll back under windows 8
2013-04-01 21:05
519 查看
下了几个版本的Node.js msi,都出现了rolling back action的问题。Google一下,见如下链接:
http://cnodejs.org/topic/51428aa3069911196d65935c
基本明了问题大概出在哪里。自己手动操作一番,配置成功,如图1:
图1
这里留爪写个配置步骤,供大家参考:
Step1: 下载node.exe,npm.zip
node.exe link: http://nodejs.org/download/
npm link:https://npmjs.org/
Step2:手动建立安装目录,本文建立D:\Node
将node.exe copy 至D:\Node
将npm解压后copy 至D:\Node
设置环境变量,在PATH中增加node的路径,本文为D:\Node
Step3:安装npm
cmd进入命令行,输入指令node cli.js install -gf
设置环境变量,增加NODE_PATH=D:\Node\node_modules
如图2:
图2
Step4:安装express
在Node目录下键入指令npm install express[安装express至相对路径]或npm install express -g[安装express至绝对路径],如图3
图3
如图3,则整个Node.js配置完成。
可以在CMD键入指令express <项目名> 建立项目,键入node app.js开启3000端口监听,在浏览器中输入localhost:3000,如图4和图1,项目部署成功:
图4
Node.js在Win8下配置完成。
转载时,请注明本文来源:www.cnblogs.com/tmywu
作者: 老鱼678
mail:tommywu23@126.com
http://cnodejs.org/topic/51428aa3069911196d65935c
基本明了问题大概出在哪里。自己手动操作一番,配置成功,如图1:
图1
这里留爪写个配置步骤,供大家参考:
Step1: 下载node.exe,npm.zip
node.exe link: http://nodejs.org/download/
npm link:https://npmjs.org/
Step2:手动建立安装目录,本文建立D:\Node
将node.exe copy 至D:\Node
将npm解压后copy 至D:\Node
设置环境变量,在PATH中增加node的路径,本文为D:\Node
Step3:安装npm
cmd进入命令行,输入指令node cli.js install -gf
设置环境变量,增加NODE_PATH=D:\Node\node_modules
如图2:
图2
Step4:安装express
在Node目录下键入指令npm install express[安装express至相对路径]或npm install express -g[安装express至绝对路径],如图3
图3
如图3,则整个Node.js配置完成。
可以在CMD键入指令express <项目名> 建立项目,键入node app.js开启3000端口监听,在浏览器中输入localhost:3000,如图4和图1,项目部署成功:
图4
Node.js在Win8下配置完成。
转载时,请注明本文来源:www.cnblogs.com/tmywu
作者: 老鱼678
mail:tommywu23@126.com
相关文章推荐
- How to pass the paramater of Node.js or io.js into native C/C++ function.
- How to pass the paramater of Node.js or io.js into native C/C++ function.
- Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python
- How to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages
- How to Defeat Windows 8 ASLR in Getting the Address of KPCR
- Tips: How to resolve the issue of MySQL about abnormal login after system launched.
- How to recover NameNode HA, when one accidentally formated one of the two NameNodes
- How to solve the issue of RSARTE's starting problem
- How to fix the USB root hub power management issue in Windows 7
- Windows下Python3安装BeautifulSoup4显示'You are trying to run the Python 2 version of Beautiful Soup under
- How to get value of the person or group type via CAML Query js
- How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506
- How to change the language of oracle sqlplus from chinese to english in windows(如何将oracle sql plus中的中文变成英文版)
- How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506
- How to install the third party modules under the pyCharm in the Windows
- How to create a Windows can run top of Metro UI under windows8c
- How to get the handle in windows using python
- How to build the environment of MSYS in the windows?
- How to change to an older version of node.js
- [Drupal] How to get the real path of a node, no matter it is a path or a url alias