Closed 92SGupta closed 5 years ago
@92SGupta Unfortunately I cannot reproduce your issue.
The --version
and --help
calls don't use the network and should not take more time than a second:
$ time force-dev-tool --help
force-dev-tool.
Usage:
...
See 'force-dev-tool help <command>' for more information on a specific command.
real 0m0.229s
user 0m0.195s
sys 0m0.044s
$ time node --version
v11.11.0
real 0m0.020s
user 0m0.010s
sys 0m0.007s
$ time node --version
v11.11.0
real 0m0.020s
user 0m0.010s
sys 0m0.007s
Have you tried comparing this with some other Node.js CLIs?
$ npm install -g oclif
$ time oclif --version
oclif/1.12.10 darwin-x64 node-v11.11.0
real 0m0.779s
user 0m0.735s
sys 0m0.122s
@amtrack Many thanks for the reply,
I tried the cli tool you suggested above and it seems all the Node.js CLI tools are having the issue. I tried updating the version of node to v11.11.0 but i can observer same issue.
time oclif --version oclif/1.12.10 linux-x64 node-v8.11.1
real 0m17.419s user 0m2.487s sys 0m0.264s
Hi,
When i am using force-dev-tool --version it is taking lot of time to return the version or help and then again takes a lot of time before coming back to command prompt in Linux. I have checked and node --version works fine and returns the output within secs. Could the issue be related to network on which i am currently using the tool?
Any help would be highly appreciated
[root@rbdeachdaurla01 bin]# time force-dev-tool --version 2.2.2
real 0m16.427s user 0m1.243s sys 0m0.135s
[root@rbdeachdaurla01 bin]# time force-dev-tool --help force-dev-tool.
Usage: force-dev-tool [...]
force-dev-tool -h | --help
force-dev-tool --version
real 0m10.503s user 0m1.246s sys 0m0.128s [root@rbdeachdaurla01 bin]# time node --version v8.12.0
real 0m0.022s user 0m0.010s sys 0m0.017s