√ 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
}
✔ 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:
wsl -l -v
code .
this will open you project in the WSL environment which will prevent you from having problems with permission denial in Windowscurl -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
nvm install 18
this will install node v18+ this is importa because is the version expo use from now (2024)nvm use 18
to use node v18+sudo apt install adb
sudo apt install google-android-platform-tools-installer
npx create-expo-module@latest and-the-name-of-your-module