Mar*_*ert 0 npm react-native npx
编辑
我最终升级了 iOS 版本并使用 Rosetta 运行 iterm2,pod 安装终于成功了。npx pod install当我应该使用时我也在使用cd ios/ && pod install
原来的
我正在设置一台新笔记本电脑,终于开始再次构建我的 React 本机应用程序,但遇到了npx pod install.
npx pod install
Need to install the following packages:
pod
Ok to proceed? (y) y
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
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 resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
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 fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated
npm WARN deprecated coffee-script@1.8.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/myuser/.npm/_npx/a0ca5f5666585aa2/node_modules/pod/node_modules/pm2/bin/pm2
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/myuser/.npm/_npx/a0ca5f5666585aa2/node_modules/pod/node_modules/pm2/bin/pm2'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/myuser/.npm/_logs/2021-11-11T00_43_21_277Z-debug.log
Run Code Online (Sandbox Code Playgroud)
当我查看这些 npx 目录时,它们在 node_modules 中从来没有任何内容。
查看podpackage.json 文件,它似乎依赖于pm2安装在模块自己的目录中,但事实node_modules并非如此。npx这就是为什么您会收到模块的错误消息ENOENT(基本上是“找不到路径”) 。pm2
最简单的解决方案可能是不使用npxwith pod,而是按照README 的指示pod进行操作,并使用npm install -g pod. 然后运行pod install而不是npx pod install.
| 归档时间: |
|
| 查看次数: |
1536 次 |
| 最近记录: |