無法讓節點時間正常運行 (Can't get nodetime run properly)


問題描述

無法讓節點時間正常運行 (Can't get nodetime run properly)

I'm trying to get this nodetime running, but seems there's some prblems I can't figur out. I did exactly as the guide say, So i supposed to get following:

  

After your start your application, a link of the form https://nodetime.com/[session_id] will be printed to the console, where the session will be your unique id for accessing the profiler server

It end the console didn't display any session id link, only this: 

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

Maybe any of you guys has experienced same issue? Looking for fixes! Thanks, in advance!

Below is what i got after nodetime installation, i got some Python error, but still seems lika a successful installation...

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

‑‑‑‑‑

參考解法

方法 1:

Python required to successful build of nodetime. Install python first. Then reinstall nodetime.

方法 2:

npm fails to install optional dependencies of nodetime: timekit and v8tools (C bindings), and the reason is correctly mentioned in previous answer (python missing). Although it should be usable even without those modules (a few features will not function though, e.g. CPU and heap profiling). 

If your initialization looks like this require('nodetime').profile(), i.e. profile() call without any arguments, then something is wrong besides the failed optional dependencies. Use debug flag to see what's wrong: require('nodetime').profile({debug: true}). Could be network related, etc.

If you're using Nodetime Pro, and included your account key and app name in profile call, i.e. require('nodetime').profile({accountKey: '...', appName: '...'}), then your application should appear on your apps page after logging in to nodetime.com. In this case no session link is printed to the console.

(by nihulusVadim Baryshevlogix)

參考文件

  1. Can't get nodetime run properly (CC BY‑SA 3.0/4.0)

#installation #javascript #monitoring #node.js






相關問題

Instal versi Firebird yang benar (32bit atau 64bit) dengan Inno Setup (Install correct version of Firebird (32bit or 64bit) with Inno Setup)

在 Ubuntu 中與 EPD python 一起安裝 NLTK (Installing NLTK alongside EPD python in Ubuntu)

INSTAL_PARSE_FAILED_NO_CERTIFICATES - 試圖在 robotsium 上測試不是我的 .apk 文件 (INSTAL_PARSE_FAILED_NO_CERTIFICATES - trying to test not my .apk file on robotium)

直截了當的回答:安裝 py2app (Straight and simple answer: installing py2app)

Sql 2008 排序規則 (Sql 2008 Collation)

Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")

如何在 C# 部署中包含文件? (How can I include files in a C# deployment?)

使用一個安裝程序安裝多個軟件(安裝包裝器?) (Install multiple softwares with one installer (install wrapper?))

如何獲取 Eclipse 安裝目錄的絕對路徑? (How can I get the absolute path to the Eclipse install directory?)

iPhone,如何使用objective-c為iphone安裝新字體? (Iphone,how to install new font to iphone by using objective-c?)

create-react-app 命令卡在使用 cra-template 安裝 react react-dom react-scripts (create-react-app command stuck on installing react react-dom react-scripts with cra-template)

tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))







留言討論