ern create-miniapp fails on Windows machine - react-native

Hi everyone,
I am new to mini apps but I followed the documentation of [Electrode native]
(https://native.electrode.io/v/v0.31/quick-start/getting-started) and [this]
(https://github.com/electrode-io/electrode-native).I am facing same issue again and again. My
installation versions are -
electrode-native: 1.0.17
ern platform: 0.40.0
node version - 9.1.0
react-native-cli: 2.0.1
I am trying to create a new project using ern create-miniapp MovieListMiniApp but getting
this error. The yarn file is already at this location .ern\versions \0.40.0\node_modules\ern-
core\node_modules\.bin\yarn but its continuously telling me
'Error: spawn .ern\versions\0.40.0\node_modules\ern-core\node_modules.bin\yarn ENOENT
events.js:196
throw er; // Unhandled 'error' event
^
Error: spawn C:\Users.ern\versions\0.40.0\node_modules.bin\yarn ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:266:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\Users.ern\versions\0.40.0\node_modules.bin\yarn',
path: 'C:\Users.ern\versions\0.40.0\node_modules.bin\yarn',
spawnargs: [ 'info', 'test-miniapp', 'versions', '--json' ]
}'
Please help me. Thanks in advance.

I tried a lot and researched much but found no luck. So ultimately I find out that the problem was with Window machine . When I tried on mac machine worked fine and the root cause was that Electrode Native is still not very mature and its not compatible with Windows architecture. So better use mac or in generic Linux based machine until the mini app team fix it.

Related

Astro initialize project Error: ENOTEMPTY: directory not empty

it was okay 2 days ago, i installed almost anything on brew, whenever i do create astro it sent me the same error in any package manager
node:fs:1213
return handleErrorFromBinding(ctx);
^
Error: ENOTEMPTY: directory not empty, rmdir 'p22'
at Object.rmdirSync (node:fs:1213:10)
at copyTemplate (file:///Users/rezaarya4/.npm/_npx/a3f2c23699a1336a/node_modules/create-astro/dist/index.js:767:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -66,
syscall: 'rmdir',
code: 'ENOTEMPTY',
path: 'p22'
}
for now i did complete renstall node from brew, deleting all node modules in all package manager folders, using nvm, and restarting my mac, i'm afraid my Mac one's causing it, or there's a corrupt node module causing this? sorry i'm new to this

React Native Application error at installing npx bugsnag

Error: spawn npm ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:464:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Hello,
Anas Ahmed here, I was installing bugsnag-expo-cli-init in my react native app at first it asked me 3 ques and then at the time of installing it gave me this error can anyone help me in this. Installing in npm
Are you attempting to run the bugsnag-expo-cli on Windows? Bugsnag's Expo CLI currently only supports Linux and Mac:
https://docs.bugsnag.com/platforms/react-native/expo/#installation-and-configuration
As an alternative to the CLI, you could follow the manual integration guide:
https://docs.bugsnag.com/platforms/react-native/expo/manual-setup/

Upgrading jhipster from v5.0.1 to the latest

I am running linux 18.04, installed java 8. I am struggling with upgrading the current version of jhipster (v5.0.1)to the latest. I have used, yo, yarn and npm but there is no success.
With npm I get an error below, with yo i get the [subsequent] error:
Using JHipster version installed globally Executing jhipster:upgradeOptions:
Welcome to the JHipster Upgrade Sub-Generator
This will upgrade your current application codebase to the latest JHipster version
events.js:174
throw er; // Unhandled 'error' event
^
Error: ERROR! Current directory does not contain a JHipster project.
at Environment.error (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:157:40)
at module.exports.error (/usr/lib/node_modules/generator-jhipster/generators/generator-base.js:1981:18)
at module.exports.assertJHipsterProject (/usr/lib/node_modules/generator-jhipster/generators/upgrade/index.js:144:26)
at Object.<anonymous> (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:399:25)
at /usr/lib/node_modules/generator-jhipster/node_modules/run-async/index.js:25:25
at new Promise (<anonymous>)
at /usr/lib/node_modules/generator-jhipster/node_modules/run-async/index.js:24:19
at self.env.runLoop.add.completed (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:400:11)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
Emitted 'error' event at:
at Immediate.setImmediate (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:406:18)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
[subsequent]
? Generators to update (Press <space> to select, <a> to toggle all, <i> to invert selection)generator-jhipster
Unhandled rejection Error: EACCES: permission denied, open '/home/lelo/.npm/_cacache/index-v5/ad/54/831265f841b3fd278d23c4c96b06a32656a62c88fddaa7739f419602a04d'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/lelo/.npm/_logs/2019-08-25T22_22_40_369Z-debug.log```
Despite any user type, I am not getting the expected output which is the upgraded version of jhipster. What could I be doing wrong?
Make sure you are in your application directory and have git installed.
Then execute jhipster upgrade.
You will probably have to solve some problems of the resulting merge arising during the update.
More info: https://www.jhipster.tech/upgrading-an-application/

Spawn cmd.exe Enoent error on running react native project

I have made a react native project using react-native init HelloWorld. When I am running this project using react-native run-android , I am getting this error.
events.js:183
throw er; // Unhandled 'error' event
^
Error: spawn cmd.exe ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
On running react-native info
Scanning folders for symlinks in D:\Work\_mine\react-
native\HelloWorld\node_modules (37ms)
React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-8750H CPU # 2.20GHz
Memory: 9.10 GB / 15.89 GB
Binaries:
Yarn: 1.6.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-173.4907809
I am clueless about problem.
For someone still have the problem after adding environment variable, try this
export PATH="$PATH:/mnt/c/Windows/System32"
+ command (on the same line)
Below solution worked for me.
Your ComSpec environment variable is wrong, replace:
%SystemRoot%\system32\cmd.exe;C:\Windows\System32
With the following:
%SystemRoot%\system32\cmd.exe
Then restart your cmd and retry to generate a project.

Running `expo start` fails with ENOENT error just after installing expo-cli on windows 10

I'm on Windows 10 Version 10.0.16299 Build 16299. I'm using Powershell. I just used yarn global add expo-cli to install expo, then I ran expo init my-app then cd my-app and expo start, but the build is failing. Here's the error image and text:
[23:11:49] Starting project at C:\projects\my-app
[23:11:58] Starting Metro Bundler on port 19001.
[23:11:58] Metro Bundler ready.
[23:12:00] Expo DevTools is running at http://localhost:19002
[23:12:00] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
at onErrorNT (internal/child_process.js:406:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Any ideas? Or even suggestions on another place where I can post this issue since it's failing out of the box. All help appreciated.
For windows:-
add environment variable in
set Path - C:\Windows\System32\
after setting path. restart your computer.
In my case, I added C:\Windows\System32\
See the Picture below: