FWeinb / electron-screenshot-service

Take screenshots using electron
MIT License
141 stars 26 forks source link

No compatible version found: axon@'^2.0.2' #35

Closed fulgorit closed 7 years ago

fulgorit commented 7 years ago

Hello I am new with node and npm

I have this error:

npm ERR! Error: No compatible version found: axon@'^2.0.2'
npm ERR! Valid install targets:
npm ERR! ["0.0.3","0.1.0","0.2.0","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","1.0.0","2.0.0","2.0.1","2.0.2","2.0.3"]

I want test this library how can I do ?

FWeinb commented 7 years ago

That looks really strange. Can you run npm --version and post your result. In the list of available targets 2.0.2 is listed.

fulgorit commented 7 years ago

$ npm --version 4.0.5

FWeinb commented 7 years ago

I just retried it myself and don't get any errors. You are running npm install electron-screenshot-service right?

fulgorit commented 7 years ago

I ran npm install electron-screenshot-service and this code

var fs = require('fs'); var screenshot = require('electron-screenshot-service');

screenshot({ url : 'http://google.be', width : 1024, height : 768 }) .then(function(img){ fs.writeFile('./out.png', img.data, function(err){ screenshot.close(); }); });

it is working thanks

2017-01-05 13:40 GMT+01:00 FWeinb notifications@github.com:

I just retried it myself and don't get any errors. You are running npm install electron-screenshot-service right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FWeinb/electron-screenshot-service/issues/35#issuecomment-270635259, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-TvwI_p2CUG7MGwuJGNtkn64aDDyPrks5rPOSrgaJpZM4LbK8Y .

-- Lionel Van Winnendaele