Shinyloadtest and npm not installing


#1

Hi everyone,

I followed the instructions to install shinyloadtest and nodejs but can’t seem to get npm install working for proxyrec. I get the following error:

silly fetchPackageMetaData error for websocket-driver@git://github.com/rstudio/websocket-driver-node.git#710ce3ed1bdc715e8afad6a257c8bfe9ae5a$
silly fetchPackageMetaData /usr/bin/git ls-remote -h -t git://github.com/rstudio/websocket-driver-node.git
silly fetchPackageMetaData
silly fetchPackageMetaData fatal: read error: Connection reset by peer
silly fetchPackageMetaData
silly fetchpackageMetaData exited with error code: 128


[...]


error Error while executing:
error /usr/bin/git ls-remote -h -t git://github.com/rstudio/websocket-driver-node.git
error 
error fatal: read error: Connection reset by peer
error
error exited with error code: 128

Have folks encountered this before? Any insight?


#2

If you can describe the steps you took/your setup, and possibly even add a reprex (reproducible example), it’ll help others help you :+1:.


#3

Thanks @mara. I was able to track it down to my VM not being able to clone the websocket-driver-node.git. What I did was change the following:

In package.json, I changed line 18 from:
"websocket-driver": "git://github.com/rstudio/websocket-driver-node.git#no-extensions"
to
"websocket-driver": "https://github.com/rstudio/websocket-driver-node.git#no-extensions"

In package-lock.json, I changed line 2905 from:
"version": "git://github.com/rstudio/websocket-driver-node.git#710ce3ed1bdc715e8afad6a257c8bfe9ae5ae358",
to
"version": "https://github.com/rstudio/websocket-driver-node.git#710ce3ed1bdc715e8afad6a257c8bfe9ae5ae358",


#4

Thanks for digging into this. shinyloadtest and proxyrec are still a WIP, feel free to open GH issues for any further problems.

For anyone else who comes across this thread, there are binaries available for proxyrec if you’re on Linux or Mac. Instructions at: https://rstudio.github.io/shinyloadtest/