Comments (11)
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.
@mikestead I've just tried 5.0.1 and it works in Windows 10! nice work
from lighthouse-batch.
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.
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.
Does report
folder exist? If not, try creating it before running the tool.
from lighthouse-batch.
yes. The folders are created
from lighthouse-batch.
@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.
And @elsassph thanks for helping out
from lighthouse-batch.
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.
@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.
@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)
- Update to use Lighthouse v6
- ReferenceError: URL is not defined when lighthouse-batch runs as cron job HOT 2
- Package missing repository link
- Feature Request: Run concurrently HOT 3
- Can I specify the test on mobile instead of desktop HOT 3
- Possible to change Runtime setting to Desktop? HOT 1
- Possible to support "Desktop" runtime? HOT 1
- Error when output CSV HOT 2
- --params fails when passing --preset=desktop HOT 8
- Cannot find module HOT 2
- Update Lighthouse to v7.3.0+ to fix vulnerability HOT 3
- ERROR in ChromeLauncher taskkill command prevents logging summary results
- Cannot Generate File & Score If URL Lengh is More Than 255 Characters HOT 1
- Tests Break on 404 Errors & Doesn' t Continue HOT 9
- Failed to find Lighthouse CLI on Yarn 2 PnP
- How to disable the emulatedUserAgent? HOT 4
- How to run sites.txt for many times? HOT 1
- I requested the PC URL, but the final Url is moved to mobile, so can I know why?
- Failure to create new browser tab HOT 3
- switching between mobile, desktop and mobile&dekstop HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse-batch.