79146947

Date: 2024-11-01 04:41:49
Score: 0.5
Natty:
Report link

Hey! I went from this

√ What is the name of the npm package? ... expo-draw-over √ What is the native module name? ... ExpoDrawOver √ How would you describe the module? ... Draw over other apps module √ What is the Android package name? ... expo.modules.drawover √ What is the name of the package author? ... Alan Lopez Reyna √ What is the email address of the author? ... √ What is the URL to the author's GitHub profile? ... √ What is the URL for the repository? ...

✔ Downloaded module template from npm
✔ Created the module from template files ✖ Installing module dependencies Error: npm install exited with non-zero code: 1 at ChildProcess.completionListener (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules@expo\spawn-async\build\spawnAsync.js:42:23) at Object.onceWrapper (node:events:634:26) at ChildProcess.emit (node:events:519:28) at cp.emit (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5) ... at spawnAsync (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules@expo\spawn-async\build\spawnAsync.js:7:23) at installDependencies (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\packageManager.js:9:37) at C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\create-expo-module.js:86:60 at newStep (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\utils.js:21:22) at Command.main (C:\Users\user\AppData\Local\npm-cache_npx\62900f925a4b91dc\node_modules\create-expo-module\build\create-expo-module.js:85:35) { pid: 852, output: [ '', '' ], stdout: '', stderr: '', status: 1, signal: null }

to this

✔ What is the name of the npm package? … draw-over-apps ✔ What is the native module name? … DrawOverApps ✔ How would you describe the module? … My new module ✔ What is the Android package name? … expo.modules.drawoverapps ✔ What is the name of the package author? … Alan Lopez ✔ What is the email address of the author? … [email protected] ✔ What is the URL to the author's GitHub profile? … ✔ What is the URL for the repository? …

✔ Downloaded module template from npm ✔ Created the module from template files ✔ Installed module dependencies ✔ Compiled TypeScript files ✔ Initialized the example app ✔ Configured the example app ✔ Prebuilt the example app ✔ Installed dependencies in the example app (skipped installing CocoaPods) ✔ Skipped creating an empty Git repository, already within a Git repository

✅ Successfully created Expo module

To start developing your module, navigate to the directory and open iOS and Android projects of the example app

cd draw-over-apps npm run open:ios npm run open:android

Learn more on Expo Modules APIs:

The solution for windows 10 users

All has to do with your environment setup in windows 10 you need to

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install --lts
nvm use --lts

is important to install this in WSL at the same time to have it in your machine

sudo apt install adb
sudo apt install google-android-platform-tools-installer

and now you can run

npx create-expo-module@latest and-the-name-of-your-module
Reasons:
  • Blacklisted phrase (1): How would you
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): I use was to setup correctly the environment for react native please
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: LRアラン