Giter Club home page Giter Club logo

Comments (11)

leptest avatar leptest commented on May 9, 2024 1

Thanks @mikestead for looking at this earlier. I've been having similar issues.

windows: 10.1803
node: 10.15.3
npm: 6.9.0
lighthouse-batch: 4.0.1

Same issues as others (#9) with windows trying to open the JS file. Setting windows to use node by default to open JS files got me past that issue.

Then i got hit with the Error: ENOENT: no such file or directory. Not sure how i got past that one..

But now we're onto a different error:

> lighthouse-batch -s https://airhorner.com,https://housing.com

Please provide a url

Specify --help for available options
1/2: Lighthouse analysis FAILED for https://airhorner.com
Please provide a url

Specify --help for available options
2/2: Lighthouse analysis FAILED for https://housing.com

it creates the report\lighthouse\summary.json file ok with the contents:

[{
	"url": "https://airhorner.com",
	"name": "airhorner_com",
	"file": "airhorner_com.report.json",
	"score": 0,
	"error": "Please provide a url\n\nSpecify --help for available options\n"
}, {
	"url": "https://housing.com",
	"name": "housing_com",
	"file": "housing_com.report.json",
	"score": 0,
	"error": "Please provide a url\n\nSpecify --help for available options\n"
}]

I'm assuming these issues are related.. Let me know if there is anything else i can do to help narrow down the problem.

from lighthouse-batch.

tommytusj avatar tommytusj commented on May 9, 2024 1

@mikestead I've just tried 5.0.1 and it works in Windows 10! nice work

from lighthouse-batch.

elsassph avatar elsassph commented on May 9, 2024

Sounds like the tool isn't executed by node - that won't work.

Are node and npm in your PATH? You may need to reinstall NodeJS.

Edit: I think you need node to be the default application for running JavaScript. Though that can be qualified as a bug of lighthouse-batch.

from lighthouse-batch.

tommytusj avatar tommytusj commented on May 9, 2024

I have the same error on Windows 10. Using the -v for verbose logging shows some debug suggesting paths are wrong on windows

Lighthouse batch run begin for 1 site 1/1: Lighthouse analyzing 'https://www.google.com' "https://www.google.com" --output json --output html --output-path "c:\lighthousetest\report/www_google_com" null fs.js:114 throw err; ^

Error: ENOENT: no such file or directory, open c:\lighthousetest\report/www_google_com.report.json

from lighthouse-batch.

elsassph avatar elsassph commented on May 9, 2024

Does report folder exist? If not, try creating it before running the tool.

from lighthouse-batch.

tommytusj avatar tommytusj commented on May 9, 2024

yes. The folders are created

from lighthouse-batch.

mikestead avatar mikestead commented on May 9, 2024

@kjackey1 and @tommytusj thanks for the details, I've released v4.0.1 which should sort out windows pathing. Can you report back if you're still seeing issues and I can reopen.

from lighthouse-batch.

mikestead avatar mikestead commented on May 9, 2024

And @elsassph thanks for helping out

from lighthouse-batch.

tommytusj avatar tommytusj commented on May 9, 2024

Im assuming this won’t run on Windows and just installed WSL on Windows 10 and ran it there

https://docs.microsoft.com/en-us/windows/wsl/install-win10

from lighthouse-batch.

mikestead avatar mikestead commented on May 9, 2024

@leptest cheers, I'll have a look this weekend and report back. If no luck then it may need to wait until I can get hold of a windows machine next week.

from lighthouse-batch.

mikestead avatar mikestead commented on May 9, 2024

@leptest @tommytusj I've just cut v4.1.0 with a fix from @elsassph. When you get min can you double check this works ok for you and report back? I'll reopen this for now until we're confident.

from lighthouse-batch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.