brownhci / WebGazer

WebGazer.js: Scalable Webcam EyeTracking Using User Interactions
https://webgazer.cs.brown.edu
Other
3.54k stars 536 forks source link

Missing dependency in npm registry for tutorials #173

Closed a-darcher closed 4 years ago

a-darcher commented 4 years ago

Hi Webgazer devs,

While trying to run the examples in /www, I ran into an issue with installing the webgazer.js@0.0.1 dependency.

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/webgazer.js/-/webgazer.js-0.0.1.tgz
npm ERR! 404 
npm ERR! 404  'webgazer.js@0.0.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'www'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Is there a newer/updated version of webgazer that has replaced 0.0.1, causing the dependency issue here? If so, what's the best fix for that? I'm not familiar with npm package distribution, and am not sure if this is something I can change on my end.

Thanks!

xanderkoo commented 4 years ago

The new npm package is here under the name webgazer (no .js), so run npm install webgazer. Apologies for the confusion. Is there a place where it says to install webgazer.js?

akshat-khare commented 4 years ago

I guess the issue is still not resolved. I want to execute the examples in www folder but I am getting same error as @a-darcher .

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/webgazer.js/-/webgazer.js-0.0.1.tgz
npm ERR! 404 
npm ERR! 404  'webgazer.js@0.0.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'www'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     $HOME/.npm/_logs/2020-10-27T18_38_09_326Z-debug.log
xanderkoo commented 4 years ago

We've renamed the package from webgazer.js to webgazer, which you can see here. Try npm install webgazer instead. You may try removing the line in www/package.json entirely, or replacing it with "webgazer": "^2.0.1".