-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/resolve peer deps npm #1558
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project is created successfully but can't run platform
pauliusguzas@MBP-de-Flexn renative % npm uninstall yarn -g
removed 1 package in 494ms
pauliusguzas@MBP-de-Flexn renative % yarn
zsh: command not found: yarn
pauliusguzas@MBP-de-Flexn renative % cd
pauliusguzas@MBP-de-Flexn ~ % cd Desktop
pauliusguzas@MBP-de-Flexn Desktop % rnv new
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ 🚀 v:1.0.0-rc.19 | renative.org | 5/23/2024, 11:20:34 AM │
│ $ rnv new │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-core (./renative/renative/packages/engine-core/lib)
task: ○ new ↺1
? What's your project Name? (folder will be created) yarnas
? What workspace to use? rnv
? What template to use? @rnv/template-starter (local) - /Users/pauliusguzas/desktop/renative/renative/packages/template-starter
info: Found local template: @rnv/template-starter@1.0.0-rc.19
✔ Executing: npm install
✔ Executing: npm add @rnv/config-templates@1.0.0-rc.19 --dev
? How to create config renative.json? Extend template (cleaner, overridable)
? What's your project Title? My Renative App
? What's your App ID? com.mycompany.yarnas
? What's your project version? 0.1.0
? What platforms would you like to use? web, ios, android
? Do you want to set-up git in your new project? Yes
info: Your project does not have a git repo. Creating one...DONE
✔ Executing: git init
info: Missing directory ./yarnas/buildHooks.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/app.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/entry.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/src/config.tsx.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/index.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/tsconfig.json.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/babel.config.js.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/typings.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/.gitignore.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/app.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/base/assets.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/base/fonts.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/Gemfile.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/metro.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/react-native.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/next.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/next-env.d.ts.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/pages.js. COPYING from TEMPATE...DONE
info: .rnv/schemas folder missing. CREATING...DONE
info: Updating appConfig app with title: My Renative App and id: com.mycompany.yarnas
? Project is ready. Do you want to install all dependencies now? Yes
✔ Executing: npm install
? To avoid the issue with the resolving peer dependencies .npmrc file with content: "legacy-peer-deps=true" will be added to your
project Yes
task: ✔ new
┌─────────────────────────────────────────────────────────────────┐
│ ✔ SUMMARY | 5/23/2024, 11:27:41 AM | rnv@1.0.0-rc.19 │
│ $ rnv new │
├─────────────────────────────────────────────────────────────────┤
│ Project: yarnas@0.1.0 │
│ Workspace: rnv │
│ Engine: @rnv/engine-core │
│ Template: @rnv/template-starter │
│ Build Scheme (-s): debug │
│ Env Info: darwin | x64 | node v18.17.0 │
│ Executed Time: 0h:7m:6s:764ms │
│
Generated Project Summary:
-------------------------
Project Name (--projectName): yarnas
Package name: yarnas
Project Version (--appVersion): 0.1.0
Workspace (--workspace): rnv
App Title (--title): My Renative App
App ID (--id): com.mycompany.yarnas
Project Template (--template): ../desktop/renative/renative/packages/template-starter
Git Enabled (--gitEnabled): true
Enabled Platforms: web, ios, android
-------------------------
✔ Your project is ready! Run it with:
cd yarnas
npx rnv run
└─────────────────────────────────────────────────────────────────┘
pauliusguzas@MBP-de-Flexn Desktop % cd yarnas
Unknown ruby interpreter version (do not know how to handle): >=2.6.10.
pauliusguzas@MBP-de-Flexn yarnas % rnv link
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ 🚀 v:1.0.0-rc.19 | renative.org | 5/23/2024, 11:27:48 AM │
│ $ rnv link │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-core (../renative/renative/packages/engine-core/lib)
task: ○ link ↺1
info: Found following source packages:
./node_modules/@rnv/adapter (unlinked)
./node_modules/@rnv/cli (unlinked)
./node_modules/@rnv/config-templates (unlinked)
./node_modules/@rnv/core (unlinked)
./node_modules/@rnv/engine-core (unlinked)
./node_modules/@rnv/engine-lightning (unlinked)
./node_modules/@rnv/engine-rn (unlinked)
./node_modules/@rnv/engine-rn-electron (unlinked)
./node_modules/@rnv/engine-rn-next (unlinked)
./node_modules/@rnv/engine-rn-tvos (unlinked)
./node_modules/@rnv/engine-rn-web (unlinked)
./node_modules/@rnv/renative (unlinked)
./node_modules/@rnv/sdk-android (unlinked)
./node_modules/@rnv/sdk-apple (unlinked)
./node_modules/@rnv/sdk-kaios (unlinked)
./node_modules/@rnv/sdk-react-native (unlinked)
./node_modules/@rnv/sdk-telemetry (unlinked)
./node_modules/@rnv/sdk-tizen (unlinked)
./node_modules/@rnv/sdk-utils (unlinked)
./node_modules/@rnv/sdk-webos (unlinked)
./node_modules/@rnv/sdk-webpack (unlinked)
./node_modules/@rnv/template-starter (linked)
? Found following packages to link? @rnv/adapter, @rnv/cli, @rnv/config-templates, @rnv/core, @rnv/engine-core, @rnv/engine-lightn
ing, @rnv/engine-rn, @rnv/engine-rn-electron, @rnv/engine-rn-next, @rnv/engine-rn-tvos, @rnv/engine-rn-web, @rnv/sdk-android, @rnv
/sdk-apple, @rnv/sdk-kaios, @rnv/sdk-react-native, @rnv/sdk-telemetry, @rnv/sdk-tizen, @rnv/sdk-utils, @rnv/sdk-webos, @rnv/sdk-we
bpack, @rnv/template-starter
info: Linking packages...
info: ✔ @rnv/adapter (./node_modules/@rnv/adapter)
info: ✔ @rnv/cli (./node_modules/@rnv/cli)
info: ✔ @rnv/config-templates (./node_modules/@rnv/config-templates)
info: ✔ @rnv/core (./node_modules/@rnv/core)
info: ✔ @rnv/engine-core (./node_modules/@rnv/engine-core)
info: ✔ @rnv/engine-lightning (./node_modules/@rnv/engine-lightning)
info: ✔ @rnv/engine-rn (./node_modules/@rnv/engine-rn)
info: ✔ @rnv/engine-rn-electron (./node_modules/@rnv/engine-rn-electron)
info: ✔ @rnv/engine-rn-next (./node_modules/@rnv/engine-rn-next)
info: ✔ @rnv/engine-rn-tvos (./node_modules/@rnv/engine-rn-tvos)
info: ✔ @rnv/engine-rn-web (./node_modules/@rnv/engine-rn-web)
info: ✔ @rnv/sdk-android (./node_modules/@rnv/sdk-android)
info: ✔ @rnv/sdk-apple (./node_modules/@rnv/sdk-apple)
info: ✔ @rnv/sdk-kaios (./node_modules/@rnv/sdk-kaios)
info: ✔ @rnv/sdk-react-native (./node_modules/@rnv/sdk-react-native)
info: ✔ @rnv/sdk-telemetry (./node_modules/@rnv/sdk-telemetry)
info: ✔ @rnv/sdk-tizen (./node_modules/@rnv/sdk-tizen)
info: ✔ @rnv/sdk-utils (./node_modules/@rnv/sdk-utils)
info: ✔ @rnv/sdk-webos (./node_modules/@rnv/sdk-webos)
info: ✔ @rnv/sdk-webpack (./node_modules/@rnv/sdk-webpack)
info: @rnv/template-starter is already linked. SKIPPING
task: ✔ link
┌─────────────────────────────────────────────────────────────────┐
│ ✔ SUMMARY | 5/23/2024, 11:27:48 AM | rnv@1.0.0-rc.19 │
│ $ rnv link │
├─────────────────────────────────────────────────────────────────┤
│ Project: yarnas@0.1.0 │
│ Workspace: rnv │
│ Engine: @rnv/engine-core │
│ Build Scheme (-s): debug │
│ Env Info: darwin | x64 | node v18.17.0 │
│ Executed Time: 0h:0m:0s:839ms │
└─────────────────────────────────────────────────────────────────┘
pauliusguzas@MBP-de-Flexn yarnas %
pauliusguzas@MBP-de-Flexn yarnas % npx rnv run -p web
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ 🚀 v:1.0.0-rc.19 | renative.org | 5/23/2024, 11:28:04 AM │
│ $ rnv run -p web │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-rn-next (../renative/renative/packages/engine-rn-next)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
info: Creating folder ./platformBuilds ...DONE
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Found only one app config available. Will use app
info: Current app config: app
task: ✔ app configure
info: Adding missing engine @rnv/engine-rn-next@1.0.0-rc.19 to package.json
info: Adding missing engine @rnv/engine-rn@1.0.0-rc.19 to package.json
info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE
info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
task: ✔ project configure
info: Current Build Scheme: debug
warn: ○ platform configure: Updates to package.json are required:
- react (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-art (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-dom (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-native (N/A) => (0.73.4) Missing dependency | plugin (renative.json)
- react-native-web (N/A) => (0.19.9) Missing dependency | plugin (renative.json)
- next (N/A) => (14.1.4) Missing dependency | plugin (renative.json)
- @rnv/renative (N/A) => (1.0.0-rc.19) Missing dependency | plugin (renative.json)
- react-native-gesture-handler (N/A) => (2.14.1) Missing dependency | plugin (renative.json)
? What to do? Update package and install (recommended)
✖ FAILED: npm install
warn: ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 1: npm install
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in: ../../.npm/_logs/2024-05-23T08_28_06_813Z-debug-0.log
at makeError (../renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (../renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Seems like your node_modules is corrupted by other libs. ReNative will try to fix it for you
✖ FAILED: npm install
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T08_28_17_522Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T08_28_17_522Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T08_28_17_522Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 5/23/2024, 11:28:24 AM | rnv@1.0.0-rc.19 │
│ $ rnv run -p web │
├─────────────────────────────────────────────────────────────────┤
│ Project: yarnas@0.1.0 │
│ Workspace: rnv │
│ Platform (-p): web │
│ Engine: @rnv/engine-rn-next │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android │
│ Env Info: darwin | x64 | node v18.17.0 │
│ Executed Time: 0h:0m:19s:101ms │
│ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE
│ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
│ info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
│ warn: ○ platform configure: Updates to package.json are required:
│ warn: ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 1: npm install
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in: ../../.npm/_logs/2024-05-23T08_28_06_813Z-debug-0.log
at makeError (../renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (../renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Seems like your node_modules is corrupted by other libs. ReNative will try to fix it for you
│ error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T08_28_17_522Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
└─────────────────────────────────────────────────────────────────┘
pauliusguzas@MBP-de-Flexn yarnas %
@pauliusguzas You don’t need to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue
pauliusguzas@MBP-de-Flexn Desktop % npm uninstall yarn -g
removed 1 package in 486ms
pauliusguzas@MBP-de-Flexn Desktop % rnv new
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ 🚀 v:1.0.0-rc.19 | renative.org | 5/23/2024, 12:07:24 PM │
│ $ rnv new │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-core (./renative/renative/packages/engine-core/lib)
task: ○ new ↺1
? What's your project Name? (folder will be created) yarnas
warn: Folder ./yarnas already exists. RNV will override it.
? Continue? Yes
info: Cleaning up existing folder...
? What workspace to use? rnv
? What template to use? @rnv/template-starter (local) - /Users/pauliusguzas/desktop/renative/renative/packages/template-starter
info: Found local template: @rnv/template-starter@1.0.0-rc.19
✔ Executing: npm install
✔ Executing: npm add @rnv/config-templates@1.0.0-rc.19 --dev
? How to create config renative.json? Extend template (cleaner, overridable)
? What's your project Title? My Renative App
? What's your App ID? com.mycompany.yarnas
? What's your project version? 0.1.0
? What platforms would you like to use? web, ios, android
? Do you want to set-up git in your new project? Yes
info: Your project does not have a git repo. Creating one...DONE
✔ Executing: git init
info: Missing directory ./yarnas/buildHooks.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/app.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/entry.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/src/config.tsx.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/index.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/tsconfig.json.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/babel.config.js.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/typings.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/.gitignore.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/app.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/base/assets.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/appConfigs/base/fonts.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/Gemfile.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/metro.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/react-native.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/next.config.js.js. COPYING from TEMPATE...DONE
info: Missing file ./yarnas/next-env.d.ts.js. COPYING from TEMPATE...DONE
info: Missing directory ./yarnas/src/pages.js. COPYING from TEMPATE...DONE
info: .rnv/schemas folder missing. CREATING...DONE
info: Updating appConfig app with title: My Renative App and id: com.mycompany.yarnas
? Project is ready. Do you want to install all dependencies now? Yes
✔ Executing: npm install
? To avoid the issue with the resolving peer dependencies .npmrc file with content: "legacy-peer-deps=true" will be added to your
project Yes
task: ✔ new
┌─────────────────────────────────────────────────────────────────┐
│ ⚠ SUMMARY | 5/23/2024, 12:14:06 PM | rnv@1.0.0-rc.19 │
│ $ rnv new │
├─────────────────────────────────────────────────────────────────┤
│ Project: yarnas@0.1.0 │
│ Workspace: rnv │
│ Engine: @rnv/engine-core │
│ Template: @rnv/template-starter │
│ Build Scheme (-s): debug │
│ Env Info: darwin | x64 | node v18.17.0 │
│ Executed Time: 0h:6m:41s:555ms │
│ warn: Folder ./yarnas already exists. RNV will override it.
│
Generated Project Summary:
-------------------------
Project Name (--projectName): yarnas
Package name: yarnas
Project Version (--appVersion): 0.1.0
Workspace (--workspace): rnv
App Title (--title): My Renative App
App ID (--id): com.mycompany.yarnas
Project Template (--template): ../desktop/renative/renative/packages/template-starter
Git Enabled (--gitEnabled): true
Enabled Platforms: web, ios, android
-------------------------
✔ Your project is ready! Run it with:
cd yarnas
npx rnv run
└─────────────────────────────────────────────────────────────────┘
pauliusguzas@MBP-de-Flexn Desktop % cd yarnas
Unknown ruby interpreter version (do not know how to handle): >=2.6.10.
pauliusguzas@MBP-de-Flexn yarnas % npx rnv run -p web
┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗ ██╗ █████╗ ████████╗██╗██╗ ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗ ██║██╔══██╗╚══██╔══╝██║██║ ██║██╔════╝ │
│ ██████╔╝█████╗ ██╔██╗ ██║███████║ ██║ ██║██║ ██║█████╗ │
│ ██╔══██╗██╔══╝ ██║╚██╗██║██╔══██║ ██║ ██║╚██╗ ██╔╝██╔══╝ │
│ ██║ ██║███████╗██║ ╚████║██║ ██║ ██║ ██║ ╚████╔╝ ███████╗ │
│ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝ │
│ $ npx rnv run -p web │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-rn-next (./node_modules/@rnv/engine-rn-next)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
info: Creating folder ./platformBuilds ...DONE
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Found only one app config available. Will use app
info: Current app config: app
task: ✔ app configure
info: Adding missing engine @rnv/engine-rn-next@1.0.0-rc.19 to package.json
info: Adding missing engine @rnv/engine-rn@1.0.0-rc.19 to package.json
info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE
info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
task: ✔ project configure
info: Current Build Scheme: debug
warn: ○ platform configure: Updates to package.json are required:
- react (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-art (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-dom (N/A) => (18.2.0) Missing dependency | plugin (renative.json)
- react-native (N/A) => (0.73.4) Missing dependency | plugin (renative.json)
- react-native-web (N/A) => (0.19.9) Missing dependency | plugin (renative.json)
- next (N/A) => (14.1.4) Missing dependency | plugin (renative.json)
- @rnv/renative (N/A) => (1.0.0-rc.19) Missing dependency | plugin (renative.json)
- react-native-gesture-handler (N/A) => (2.14.1) Missing dependency | plugin (renative.json)
? What to do? Update package and install (recommended)
✖ FAILED: npm install
warn: ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 1: npm install
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in: ../../.npm/_logs/2024-05-23T09_14_19_245Z-debug-0.log
at makeError (./node_modules/execa/lib/error.js:60:11)
at handlePromise (./node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Seems like your node_modules is corrupted by other libs. ReNative will try to fix it for you
✖ FAILED: npm install
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T09_14_33_333Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T09_14_33_333Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T09_14_33_333Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 5/23/2024, 12:14:41 PM | rnv@ │
│ $ npx rnv run -p web │
├─────────────────────────────────────────────────────────────────┤
│ Project: yarnas@0.1.0 │
│ Workspace: rnv │
│ Platform (-p): web │
│ Engine: @rnv/engine-rn-next │
│ Template: @rnv/template-starter │
│ App Config (-c): app │
│ Build Scheme (-s): debug │
│ Supported Platforms: web, ios, android │
│ Env Info: darwin | x64 | node v18.17.0 │
│ Executed Time: 0h:0m:23s:856ms │
│ info: ✔ /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json. FIXING...DONE
│ info: ✔ /@react-native-community/cli/build/bin.js requires override by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json. FIXING...DONE
│ info: ✔ /react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js requires override by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json. FIXING...DONE
│ warn: ○ platform configure: Updates to package.json are required:
│ warn: ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 1: npm install
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in: ../../.npm/_logs/2024-05-23T09_14_19_245Z-debug-0.log
at makeError (./node_modules/execa/lib/error.js:60:11)
at handlePromise (./node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Seems like your node_modules is corrupted by other libs. ReNative will try to fix it for you
│ error: ⨯ ○ platform configure: COMMAND:
npm install
FAILED with ERROR:
Error: Command failed with exit code 190: npm install
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web
npm ERR! dest /Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/Users/pauliusguzas/Desktop/yarnas/node_modules/react-native-web' -> '/Users/pauliusguzas/Desktop/yarnas/node_modules/.react-native-web-RzdzjCSe'
npm ERR! A complete log of this run can be found in: /Users/pauliusguzas/.npm/_logs/2024-05-23T09_14_33_333Z-debug-0.log
at makeError (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/pauliusguzas/Desktop/yarnas/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
└─────────────────────────────────────────────────────────────────┘
pauliusguzas@MBP-de-Flexn yarnas %
I modified isYarnInstalled() to always return false (just adding |
I've tested on macOS Ventura 13.6.4 (M2)
|
Description
Related issues
Npm releases
n/a