node.js遇到的问题

1.cann't find module 'request'   不能找到’request' 模块

解决方法:找到项目的根路径,cd到该路径,运行命令 npm install request

 

2.node express项目默认端口是3000,debug状态下仍是该端口,debug的端口和应用的端口是不一样的

 

3.Can't find Python executable "python"  原因:未安装python或者未设置python环境变量(支持版本一般为2.7)

参考:http://stackoverflow.com/questions/21365714/nodejs-error-installing-with-npm

 

posted @ 2017-01-17 08:55  ldybyz  阅读(271)  评论(0编辑  收藏  举报