无法正常运行nodetime

我试图让这个节点时间运行,但似乎有一些prblems我不能想象出来。 我完全按照指导的说法,所以我应该得到以下几点:

在你开始你的应用程序之后,一个forms为https://nodetime.com/[session_id]的链接将被打印到控制台,在那里会话将是你访问profiler服务器的唯一ID

它结束了控制台没有显示任何会话id链接,只有这个:

23 Aug 13:32:23 - Nodetime: profiler resumed for 180 seconds

也许你们中的任何一个人遇到过同样的问题? 寻找修复! 提前致谢!

下面是我得到的nodetime安装后,我得到了一些Python错误,但仍然似乎lika成功安装…

 npm WARN package.json application-name@0.0.1 No README.md file found! npm WARN package.json jade@0.26.3 No README.md file found! npm http GET http://registry.npmjs.org/nodetime npm http 200 http://registry.npmjs.org/nodetime npm http GET http://registry.npmjs.org/nodetime/-/nodetime-0.4.5.tgz npm http 200 http://registry.npmjs.org/nodetime/-/nodetime-0.4.5.tgz npm http GET http://registry.npmjs.org/request/2.10.0 npm http GET http://registry.npmjs.org/v8tools npm http GET http://registry.npmjs.org/timekit npm http 200 http://registry.npmjs.org/request/2.10.0 npm http GET http://registry.npmjs.org/request/-/request-2.10.0.tgz npm http 200 http://registry.npmjs.org/v8tools npm http GET http://registry.npmjs.org/v8tools/-/v8tools-0.1.1.tgz npm http 200 http://registry.npmjs.org/timekit npm http GET http://registry.npmjs.org/timekit/-/timekit-0.1.9.tgz npm http 200 http://registry.npmjs.org/v8tools/-/v8tools-0.1.1.tgz npm http 200 http://registry.npmjs.org/request/-/request-2.10.0.tgz npm http 200 http://registry.npmjs.org/timekit/-/timekit-0.1.9.tgz npm http GET http://registry.npmjs.org/bindings npm http 200 http://registry.npmjs.org/bindings > timekit@0.1.9 install C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\nod e_modules\nodetime\node_modules\timekit > node-gyp rebuild > v8tools@0.1.1 install C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\nod e_modules\nodetime\node_modules\v8tools > node-gyp rebuild C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\node_modules\nodetime\node_ modules\timekit>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gy p-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\node_modules\nodetime\node_ modules\v8tools>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gy p-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files (x86)\nodejs\node_modules\n pm\node_modules\node-gyp\lib\configure.js:110:14) gyp ERR! stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_module s\node-gyp\lib\configure.js:74:11 gyp ERR! stack at Object.oncomplete (fs.js:297:15) gyp gypERR! System Windows_NT 6.1.7601 ERR! gyp configure errorERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_module s\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\node_modules\n odetime\node_modules\timekit gypgyp ERR! node -v v0.8.5 gyp ERR! node-gyp -v v0.6.3 gyp ERR! not ok ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Program Files (x86)\nodejs\node_modules\n pm\node_modules\node-gyp\lib\configure.js:110:14) gyp ERR! stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_module s\node-gyp\lib\configure.js:74:11 gyp ERR! stack at Object.oncomplete (fs.js:297:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod e_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\TJIA\Desktop\Sommarjobb\Extrauppgifter\demo\node_modules\n odetime\node_modules\v8tools gyp ERR! node -v v0.8.5 gyp ERR! node-gyp -v v0.6.3 gyp ERR! not ok npm WARN optional dep failed, continuing timekit@0.1.9 npm WARN optional dep failed, continuing v8tools@0.1.1 nodetime@0.4.5 node_modules\nodetime +-- request@2.10.0 

npm无法安装nodetime:timekit和v8tools(C绑定)的可选依赖关系,原因在前面的答案(python缺less)中正确提到。 尽pipe即使没有这些模块,也应该可以使用(尽pipe如此,一些function将不起作用,例如CPU和堆分析)。

如果你的初始化看起来像这样require('nodetime').profile() ,即profile()调用没有任何参数,那么除了失败的可选依赖关系外,还有一些错误。 使用debugging标志看看有什么错: require('nodetime').profile({debug: true}) 。 可能与networking有关等

如果您正在使用NodeTime Pro,并且在configuration文件调用中包含了您的帐户密钥和应用程序名称,即require('nodetime').profile({accountKey: '...', appName: '...'}) ,那么login到nodetime.com后,应用程序应显示在应用程序页面上。 在这种情况下,没有会话链接被打印到控制台。

Python需要成功构buildnodetime 。 先安装python 。 然后重新安装nodetime