在Windows上安装完nodejs和npm后,运行命令
npm install -g nide
即可安装nide,但是运行
nide init
会报错误
Could not find npm command. Is npm installed?
报这个错误的原因是nide官方暂时还没有去支持Windows:
The Nide IDE is available both as a command-line tool and as a standalone Mac app. Please note that currently Windows is unsupported. (We're working on that)
不过我们可以从 这里得到支持。
首先我们需要找到nide在Windows下的安装目录:
通过命令:
npm config ls
可以看到prefix的值
这个就是运行
npm install -g
命令的安装目录
当然也可以通过
npm config set prefix "X:\yourPath"
更改。
然后进入该目录下的 "node_modules\nide",用这里的文件覆盖该目录下的文件。
此时,可以使用nide了。
另外,个人觉得还是vs+(NTVS)来nodejs开发比较爽!
也推荐大家看看百度的http://cloudajs.org/