我已经安装了chrome,LTS版本的Node和lighthouse,但是在尝试运行审核时出现以下错误:
/usr/local/lib/node_modules/lighthouse/lighthouse-core/lib/url-shim.js:36
class URLShim extends URL {
^
ReferenceError: URL is not defined
at Object.<anonymous> (/usr/local/lib/node_modules/lighthouse/lighthouse-core/lib/url-shim.js:36:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/lighthouse/lighthouse-core/lib/network-request.js:14:13)
at Module._compile (module.js:652:30)
安装完所有必需的软件后,我尝试对其进行测试并得到以上错误。
灯塔https://www.bbc.co.uk
据我了解,您可以在命令行中键入lighthouse,然后输入您要对其进行审核的站点的URL。但我不断得到:
ReferenceError:未定义URL。
难道我做错了什么。请帮忙。
我遇到过同样的问题。您的节点版本已过时。通过运行检查node --version
如果小于10,则说明您已找到问题。
火狐开发版本:https://developer.mozilla.org/
Firefox Developer Edition 中文
本文主要讲述Firefox Developer Edition如何显示为中文:
转载请注明出处
讲述一下曲折过程:我曾经多次想将其设置成中文,无奈在设置中language选了中文也不起效果。
但是设置成中文对于英语不是太好的人,或者刚开始使用的人还是非常方便的
今天又心血来潮想设置一下,无奈还是不行。可有时候事情就是那么踏破铁鞋无觅处得来全不费工夫。
发现过程:
1.在搜索Firefox Developer Edition的时候发现给出的都是下面的英文网址:
https://www.mozilla.org/en-US/firefox/developer/
2.于是乎我想,如果在中文网页上下载是不是中文版呢。可以去哪找中文网站呢?我将上述英文网址中的en换成zh(注意:为什么不换成cn,因为我见过太多包括语言设置等中国的代表都是zh),于是成了:https://www.mozilla.org/zh-CN/firefox/developer/
3.打开之后就是中文版的了,当然下载下来的也是中文。
谷歌插件:https://chrome.google.com/webstore/category/extensions