在安装web-ext时,我在安装和安装过程中得到了以下两条消息:
npm WARN optional Skipping failed optional dependency /web-ext/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4在尝试用web-ext run开始注释之后,我得到了以下消息
(/usr/local/lib/node_modules/web-ext/dist/webpack:/src/util/file-exists.js:24:42) at _callee$ (/usr/local/lib/node_modules/web-ext/dist/webpack:/src/util/file-exists.js:28:11) at tryCatch (/usr/local/lib/node_modules/web-ext/node_modules/regenerator-:无法读取未定义at fileIsReadable R_OK的属性“R_OK”运行时/运行时.62:62:40)在GeneratorFunctionPrototype.prototype.(anonymous函数的GeneratorFunctionPrototype.invoke invoke ) as next在/usr/local/lib/node_modules/web-ext/dist/webpack:/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:1的步骤新承诺(/usr/local/lib/node_modules/web-ext/dist/webpack:/node_modules/core-js/library/modules/es6.promise.js:177:1) at /usr/local/lib/node_modules/web-ext/dist/webpack:/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:1 at fileExists (/usr/local/lib/node_modules/web-ext/dist/web-ext.js:13002:17)
发布于 2018-10-27 23:35:10
至少更新到节点的最新v6。我建议您使用>= v8,因为对v6的支持将在2019年结束,您不能使用异步/等待。(https://github.com/nodejs/Release#release-schedule)
https://stackoverflow.com/questions/52955726
复制相似问题