Node.js 本机项目安装错误

Node.js 本机项目安装错误,node.js,macos,react-native,npm,Node.js,Macos,React Native,Npm,我正在尝试在我的计算机上安装一个新的react本机项目,但我有很多错误: 节点版本:11.13 npm WARN deprecated react-navigation-stack@1.10.3: This version of React Navigation Stack is no longer supported. Please upgrade to 2.x.x. See https://reactnavigation.org/docs/4.x/upgrading-from-3.x#rea

我正在尝试在我的计算机上安装一个新的react本机项目,但我有很多错误:

节点版本:11.13

npm WARN deprecated react-navigation-stack@1.10.3: This version of React Navigation Stack is no longer supported. Please upgrade to 2.x.x. See https://reactnavigation.org/docs/4.x/upgrading-from-3.x#react-navigation-stack for instructions.
npm WARN deprecated core-js@2.6.11: 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 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 fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
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
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > dtrace-provider@0.8.8 install /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/dtrace-provider
npm ERR! prepareGitDep > node-gyp rebuild || node suppress-error.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep   ACTION binding_gyp_ndtp_target_build_ndtp .
npm ERR! prepareGitDep   TOUCH Release/obj.target/ndtp.stamp
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > fsevents@1.2.13 install /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/fsevents
npm ERR! prepareGitDep > node install.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep   SOLINK_MODULE(target) Release/.node
npm ERR! prepareGitDep   CXX(target) Release/obj.target/fse/fsevents.o
npm ERR! prepareGitDep   SOLINK_MODULE(target) Release/fse.node
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > core-js@2.6.11 postinstall /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/core-js
npm ERR! prepareGitDep > node -e "try{require('./postinstall')}catch(e){}"
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > detox@14.9.2 postinstall /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/detox
npm ERR! prepareGitDep > node scripts/postinstall.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep /Users/ayb/Library/Detox/ios/e58101f483e2f39c2622541a36b54cd597701868 was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted.
npm ERR! prepareGitDep          deleting /Users/ayb/Library/Detox/ios/e58101f483e2f39c2622541a36b54cd597701868 and trying to rebuild.
npm ERR! prepareGitDep Extracting Detox sources...
npm ERR! prepareGitDep Building Detox.framework from /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/detox/ios_src...
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep npm WARN deprecated core-js@2.6.11: 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 ERR! prepareGitDep 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 ERR! prepareGitDep npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! prepareGitDep 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 ERR! prepareGitDep npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm ERR! prepareGitDep npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! prepareGitDep npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! prepareGitDep npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! prepareGitDep npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm ERR! prepareGitDep child_process.js:658
npm ERR! prepareGitDep     throw err;
npm ERR! prepareGitDep     ^
npm ERR! prepareGitDep 
npm ERR! prepareGitDep Error: Command failed: /Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/detox/scripts/build_framework.ios.sh
npm ERR! prepareGitDep     at checkExecSyncError (child_process.js:637:11)
npm ERR! prepareGitDep     at Object.execFileSync (child_process.js:655:13)
npm ERR! prepareGitDep     at Object.<anonymous> (/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/detox/scripts/postinstall.js:2:27)
npm ERR! prepareGitDep     at Module._compile (internal/modules/cjs/loader.js:805:30)
npm ERR! prepareGitDep     at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
npm ERR! prepareGitDep     at Module.load (internal/modules/cjs/loader.js:672:32)
npm ERR! prepareGitDep     at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
npm ERR! prepareGitDep     at Function.Module._load (internal/modules/cjs/loader.js:604:3)
npm ERR! prepareGitDep     at Function.Module.runMain (internal/modules/cjs/loader.js:868:12)
npm ERR! prepareGitDep     at internal/main/run_main_module.js:21:11
npm ERR! prepareGitDep npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm ERR! prepareGitDep npm WARN @react-native-community/geolocation@2.0.2 No repository field.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! detox@14.9.2 postinstall: `node scripts/postinstall.js`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the detox@14.9.2 postinstall script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! premature close
npm警告不推荐的反应导航-stack@1.10.3:不再支持此版本的React导航堆栈。请升级到2.x.x。看见https://reactnavigation.org/docs/4.x/upgrading-from-3.x#react-导航堆栈中的指令。
npm警告弃用的内核-js@2.6.11:core js@dtrace-provider@0.8.8安装/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/dtrace provider
npm错误!prepareGitDep>node gyp rebuild | | node suppress-error.js
npm错误!准备阶段
npm错误!准备开始步骤操作绑定\u gyp\u ndtp\u目标\u构建\u ndtp。
npm错误!准备开始步骤触摸释放/obj.target/ndtp.stamp
npm错误!准备阶段
npm错误!prepareGitDep>fsevents@1.2.13安装/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/fsevents
npm错误!prepareGitDep>node install.js
npm错误!准备阶段
npm错误!prepareGitDep SOLINK_模块(目标)发布/.node
npm错误!准备EGITDEP CXX(目标)发布/obj.target/fse/fsevents.o
npm错误!准备eGITDEP SOLINK_模块(目标)发布/fse.node
npm错误!准备阶段
npm错误!prepareGitDep>核心-js@2.6.11postinstall/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/core js
npm错误!prepareGitDep>node-e“try{require('./postinstall')}catch(e){}”
npm错误!准备阶段
npm错误!准备阶段
npm错误!prepareGitDep>detox@14.9.2postinstall/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/detox
npm错误!prepareGitDep>节点脚本/postinstall.js
npm错误!准备阶段
npm错误!找到了prepareGitDep/Users/ayb/Library/Detox/ios/e58101f483e2f39c2622541a36b54cd597701868,但在其中找不到Detox.framework。这意味着解毒框架构建过程被中断。
npm错误!准备删除/Users/ayb/Library/Detox/ios/e58101f483e2f39c2622541a36b54cd597701868并尝试重建。
npm错误!制备EGITDEP提取解毒源。。。
npm错误!从/Users/ayb/.npm/_cacache/tmp/git-clone-f8fd3d76/node_modules/Detox/ios_src准备egitdep Building Detox.framework。。。
npm错误!准备阶段
npm错误!prepareGitDep 2>npm WARN install不推荐使用“--dev”选项。改用“---only=dev”。
npm错误!prepareGitDep npm警告不推荐的旧件-js@2.6.11:core js@=3.2.0-dev||>=3.3.0-dev||>=3.4.0-dev||>=3.5.0-dev||>=3.6.0-beta||>=3.7.0-dev||>=3.7.0-beta,但未安装。您必须自己安装对等依赖项。
npm错误!prepareGitDep npm WARN@react本地社区/geolocation@2.0.2没有存储库字段。
npm错误!准备阶段
npm错误!准备开始执行npm错误!代码失效循环
npm错误!准备开始执行npm错误!错误1
npm错误!准备开始执行npm错误!detox@14.9.2postinstall:`node scripts/postinstall.js`
npm错误!准备开始执行npm错误!退出状态1
npm错误!准备开始执行npm错误!
npm错误!准备开始执行npm错误!失败detox@14.9.2安装后脚本。
npm错误!准备开始执行npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!准备阶段
npm错误!过早关闭

上传您的依赖项:

全球:

npm安装

或者一次一个:

npm安装包的名称


你也可以用安装代替升级

我忘了发布解决方案,而我在npm I的时候不需要排毒, 我已禁用它:

导出解除锁定\u禁用\u后安装=1


热门话题^^^^^^