tmodjs安装

关于tmodjs的详细介绍请查看github:https://github.com/aui/tmodjs#%E5%AE%89%E8%A3%85

下面说下tmodjs的详细安装过程:

1、首先去nodejs官网地址:http://nodejs.org/根据操作系统的类型下载对应的nodejs。

2、nodejs安装后可以在开始菜单中找到node.js的安装信息,如下所示:

3、通过系统的CMD命令,进入系统的命令行模式,并进入node.js的安装目录,在安装目录下执行tmodjs的         安装命令:npm install -g tmodjs,如下所示:


 
问题:在安装tmodjs或express出现错误,提示如下:

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "update"
npm ERR! cwd C:\work\selink
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! syscall write
npm ERR! code EIO
npm ERR! errno EIO

解决:通过命令行设置一下编码方式,如:chcp 850

错误参考:https://github.com/npm/npm/issues/3858 

 

猜你喜欢

转载自yuhanwm910731.iteye.com/blog/2346736
今日推荐