Appium Appium 运行 ./Scripts/bootstrap.sh 报错,求助,运行结果如下

LiuYanni · 2021年02月04日 · 最后由 恒温 回复于 2021年02月04日 · 2059 次阅读

Fetching dependencies
*** Checking out RoutingHTTPServer at "v1.0.1"
*** xcodebuild output can be found in /var/folders/sr/x05b29dx5sv0v__sxwyb40qh0000gn/T/carthage-xcodebuild.HAzjko.log
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
Building Inspector
Creating bundle directory...
Fetching Inspector dependencies...
npm WARN deprecated babel-eslint@7.2.3: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated css-list@0.1.3: Deprecated.
npm WARN deprecated postcss-single-charset@0.3.0: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated flatten@0.0.1: I wrote this module a very long time ago; you should use something else.
npm WARN deprecated browserslist@0.4.0: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

> fsevents@1.2.13 install /Users/liuyanni/WebDriverAgent/Inspector/node_modules/fsevents
> node install.js

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> core-js@2.6.12 postinstall /Users/liuyanni/WebDriverAgent/Inspector/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-dom@15.7.0 requires a peer of react@^15.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.11.2 requires a peer of webpack@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.7.3 requires a peer of webpack@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-errors@1.0.1 requires a peer of ajv@>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN web-driver-inspector@1.0.0 No repository field.

added 890 packages from 628 contributors and audited 890 packages in 60.823s

28 packages are looking for funding
  run `npm fund` for details

found 24 vulnerabilities (12 low, 12 high)
  run `npm audit fix` to fix them, or `npm audit` for details
Validating Inspector
ImportDeclaration should appear when the mode is ES6 and in the module context.
AssertionError [ERR_ASSERTION]: ImportDeclaration should appear when the mode is ES6 and in the module context.
    at Referencer.ImportDeclaration (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/escope/lib/referencer.js:591:34)
    at Referencer.Visitor.visit (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/esrecurse/esrecurse.js:104:34)
    at Referencer.Visitor.visitChildren (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/esrecurse/esrecurse.js:83:38)
    at Referencer.Program (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/escope/lib/referencer.js:419:18)
    at Referencer.Visitor.visit (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/esrecurse/esrecurse.js:104:34)
    at Object.analyze (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/escope/lib/index.js:153:16)
    at EventEmitter.module.exports.api.verify (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/eslint/lib/eslint.js:892:35)
    at processText (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/eslint/lib/cli-engine.js:264:31)
    at processFile (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/eslint/lib/cli-engine.js:303:18)
    at executeOnFile (/Users/liuyanni/WebDriverAgent/Inspector/node_modules/eslint/lib/cli-engine.js:672:25)
(node:2471) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2471) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:2471) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
共收到 1 条回复 时间 点赞

node 环境不对么

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册