error in npx ignite-cli@next new PizzaAppNew
Describe the bug
following failure when executing npx ignite-cli@next new PizzaAppNew. Please note npx ignite-cli new PizzaApp (ie 7.15 version) works correctly .. Command output follows.
/Users/carrollfulkerson/.npm/_npx/2351a7c35afcf833/node_modules/gluegun/build/index.js:15
throw up;
^
warning ../package.json: No license field
warning @expo/webpack-config > webpack-dev-server > [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @expo/webpack-config > webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @expo/webpack-config > webpack-dev-server > url > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning @expo/webpack-config > webpack-dev-server > sockjs > [email protected]: 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.
warning @expo/webpack-config > webpack-dev-server > webpack-log > [email protected]: 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.
warning @expo/webpack-config > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning @expo/webpack-config > webpack > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning @expo/webpack-config > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @expo/webpack-config > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning @expo/webpack-config > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning @expo/webpack-config > webpack > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @expo/webpack-config > optimize-css-assets-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo > [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning expo > [email protected]: 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.
warning expo > expo-constants > [email protected]: 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.
warning expo > expo-file-system > [email protected]: 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.
warning expo > @expo/cli > [email protected]: 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.
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by uglify-js as of v3.13.0
warning babel-jest > @jest/transform > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning detox > tempfile > [email protected]: 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.
warning detox-expo-helpers > xdl > [email protected]: Beta version should not be used anymore
warning detox-expo-helpers > xdl > [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning detox-expo-helpers > xdl > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning detox-expo-helpers > xdl > [email protected]: 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.
warning detox-expo-helpers > xdl > @expo/bunyan > [email protected]: 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.
warning detox-expo-helpers > xdl > @expo/ngrok > [email protected]: 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.
warning detox-expo-helpers > xdl > [email protected]: Please upgrade to @sentry/node. See the migration guide https://bit.ly/3ybOlo7
warning detox-expo-helpers > xdl > raven > [email protected]: 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.
warning detox-expo-helpers > xdl > [email protected]: Please upgrade to @sentry/browser. See the migration guide https://bit.ly/3ybOlo7
warning detox-expo-helpers > xdl > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning detox-expo-helpers > xdl > slugid > [email protected]: 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.
warning detox-expo-helpers > xdl > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning detox-expo-helpers > xdl > @expo/ngrok > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning detox-expo-helpers > xdl > request > [email protected]: 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.
warning detox-expo-helpers > xdl > [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
warning detox-expo-helpers > xdl > plist > [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
warning detox-expo-helpers > xdl > joi > [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning detox-expo-helpers > xdl > joi > [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning detox-expo-helpers > xdl > joi > topo > [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
warning detox-expo-helpers > xdl > analytics-node > [email protected]: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at https://github.com/visionmedia/superagent/releases.
warning detox-expo-helpers > xdl > request > [email protected]: this library is no longer supported
warning detox-expo-helpers > xdl > analytics-node > superagent > [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning detox-expo-helpers > xdl > @expo/osascript > babel-runtime > [email protected]: core-js@<3.23.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. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning detox-expo-helpers > xdl > pacote > make-fetch-happen > [email protected]: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
warning metro-config > metro > metro-minify-uglify > [email protected]: support for ECMAScript is superseded by uglify-js as of v3.13.0
warning mocha > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning mocha > [email protected]: 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.)
warning "reactotron-react-native > [email protected]" has incorrect peer dependency "react@^16.8.1".
warning "reactotron-react-native > [email protected]" has incorrect peer dependency "react-native@^0.62.0".
No patch files found
Jetifier is deprecated. Future versions of react-native CLI may not run it by default.
Jetifier: propose an AndroidX conversion PR to this repository: node_modules/detox/android/detox/src/full/java/com/wix/detox/Detox.java
Jetifier: propose an AndroidX conversion PR to this repository: node_modules/detox/android/detox/src/testFull/java/com/wix/invoke/JsonParserTest.java
Jetifier: propose an AndroidX conversion PR to this repository: node_modules/detox/android/detox/src/testFull/java/com/wix/invoke/JsonParserTest.java
(node:42778) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/carrollfulkerson/code/PizzaAppNext/node_modules/@expo/devcert/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ... to show where the warning was created)
/Users/carrollfulkerson/code/PizzaAppNext/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:51: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/Users/carrollfulkerson/code/PizzaAppNext/node_modules/react-native/scripts/react_native_pods_utils/script_phases.rb:51: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
./bin/postInstall failed on command:
if [ -d "ios" ]; then cd ios && pod install && cd -; fi
error Command failed with exit code 31.
(Use node --trace-uncaught ... to show where the exception was thrown)
Ignite version
8.0.0-beta.7
Additional info
System platform darwin arch arm64 cpu 8 cores Apple M1 directory PizzaAppNext /Users/carrollfulkerson/code/PizzaAppNext
JavaScript (and globally-installed packages) node 16.17.0 /Users/carrollfulkerson/.nvm/versions/node/v16.17.0/bin/node npm 8.15.0 /Users/carrollfulkerson/.nvm/versions/node/v16.17.0/bin/npm corepack 0.12.1 npm 8.15.0 yarn 1.22.19 yarn 1.22.19 /Users/carrollfulkerson/.nvm/versions/node/v16.17.0/bin/yarn pnpm - not installed expo 46.0.10 managed
Ignite ignite-cli 8.0.0-beta.7 /Users/carrollfulkerson/.npm/_npx/2351a7c35afcf833/node_modules/.bin/ignite ignite src build /Users/carrollfulkerson/.npm/_npx/2351a7c35afcf833/node_modules/ignite-cli/build
Android java 11.0.16.1 /usr/bin/java android home - undefined
iOS xcode 14.0 cocoapods 1.11.3 /opt/homebrew/bin/pod
Can you try the following commands?
npx ignite-cli new PizzaApp --install-deps=false
cd ios && pod install
And post your ruby version?
I see that you have an M1 Mac, I had some issues with Cocopods previously with my M1 and that seems to be what is happening here
This guide may be helpful for checking your Cocopods as well: https://dev.to/staceypyee/installing-cocoapods-on-m1-macbook-air-big-sur-h0l
thx again - sorry for delay in getting to this. I am looking into my cocoapods install/config. Not finding anything obvious at the moment (caveat: new to front end). For good measure, I also ran the command using non-maverick (7.5.1) - things seem to continue to work.
Ruby version: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin21]
commands: npx ignite-cli@next new PizzaAppNext --install-deps=false cd PizzaAppNext cd ios && pod install
output from pod install node:internal/modules/cjs/loader:959 throw err; ^
Error: Cannot find module 'expo/package.json' Require stack:
- /Users/carrollfulkerson/code/PizzaAppNext/ios/[eval] at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15) at Function.resolve (node:internal/modules/cjs/helpers:108:19) at [eval]:1:9 at Script.runInThisContext (node:vm:129:12) at Object.runInThisContext (node:vm:313:38) at node:internal/process/execution:76:19 at [eval]-wrapper:6:22 at evalScript (node:internal/process/execution:75:60) at node:internal/main/eval_string:27:3 { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/carrollfulkerson/code/PizzaAppNext/ios/[eval]' ] }
[!] Invalid Podfile file: cannot load such file -- ./scripts/autolinking.
from /Users/carrollfulkerson/code/PizzaAppNext/ios/Podfile:3
-------------------------------------------
require File.join(File.dirname(
cd #{pod_folder} && node --print "require.resolve('expo/package.json')"), "scripts/autolinking")
require File.join(File.dirname(cd #{pod_folder} && node --print "require.resolve('react-native/package.json')"), "scripts/react_native_pods")
-------------------------------------------
FYI.. I proceeded to run yarn install after the suggestion to run command below. Errored out trying to install flipper. Ran 'Pod Repo Update' and seems to be making further progress on yarn install. Will update.
after running the 'Pod Repo Update' - 'npx ignite-cli@next new PizzaApp' now works. Apologies for the false alarm. Thank you very much for your assistance in debugging my error. Would you like me to close this issue ? btw: like the new app/content - well done.
I can close the issue, thank you for following up. I'm glad you are liking the new app/content!
i have the same error but can't fix it can any one help !
[!] Invalid Podfile file: cannot load such file -- ./scripts/autolinking.
npx ignite-cli doctor :
user@users-MBP MushafApp-zinouGit % npx ignite-cli doctor
System
platform darwin
arch x64
cpu 10 cores Apple M1 Pro
directory MushafApp-zinouGit /Users/user/Desktop/JeelTech/- 3 - Project - mushaf/MushafApp-zinouGit
JavaScript (and globally-installed packages)
node 20.2.0 /Users/user/.nvm/versions/node/v20.2.0/bin/node
npm 9.6.6 /Users/user/.nvm/versions/node/v20.2.0/bin/npm
corepack 0.17.2
npm 9.6.6
yarn 1.22.19 /usr/local/bin/yarn
create-gatsby 3.11.0
create-vite 4.4.1
pnpm - not installed
expo 48.0.20 managed
Ignite
ignite-cli 8.8.7 /Users/user/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/user/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 20.0.2 /usr/bin/java
android home - /Users/user/Library/Android/sdk
iOS
xcode 14.3.1
cocoapods 1.12.1 /Users/user/.rvm/gems/ruby-2.7.6/bin/pod
Tools git git version 2.39.2 (Apple Git-143) /usr/bin/git
I tried pod repo update, tried pod install --repo-update but no luck. Also yarn does this but npm works fine