My System:
Mac OSX 10.14.6
Electron: 10.1.5
electron-forge: ^6.0.0-beta.54
I've been working on an Electron side project. I started it using electron-forge, I had a small application functioning just fine, I then set it aside for a couple weeks. Coming back to it, I tried running npm start and it did nothing but return to a new terminal line. So I tried electron-forge start and it returned bash: electron-forge: command not found.
I tried deleting my node_modules folder and reinstalling, I tried creating a new electron-forge boilerplate, and neither made a difference. I tried installing electron-forge globally, but it errored out on the second step, and I found several stackoverflow articles saying I shouldn't have electron-forge installed globally. I haven't changed anything (that I know of) on a system level, but it seems to be a system issue, rather than a package issue, but I'm not knowledgable enough to do anything other than Google the errors and see what stacksoverflow articles are out there, but no articles have helped.
I'd love any and all help, Electron has ceased working on my system completely, and I have no idea how to troubleshoot it. Thanks in advance!
I ended up deleting and re-installing Node and that seems to have fixed it. Still not sure what caused the initial issue, but it's working again. For those interested, here's the resources I used:
https://stackabuse.com/how-to-uninstall-node-js-from-mac-osx/
https://pawelgrzybek.com/install-nodejs-installer-vs-homebrew-vs-nvm/
Update:
I kept having issues running npm start. What finally worked was to create a new boilerplate project using the CLI and copy the contents of the package-lock.json to the old project. That finally launched the app.
I know this is an old question but, I had the same issue and instead of uninstalling Node, I used rm -rf node_modules then I used npm cache clean --force. I reinstalled my dependencies and electron-forge worked again.
Use the command below
npm install electron
Related
It is an expo-eject project and the commands I have used after cloning the project are:
Yarn,
Yarn start,
Yarn android,
And it does not show any error but gets stuck on a same point everytime when I try to run the project.
The project runs fine on the laptops of other teammates, but I am facing this issue.
Here are the versions of the installed tools:
Nodejs 14.17.6,
Expo 4.11.0,
React-native-cli 2.0.1,
I am adding an image that shows where the project gets blocked.
This is the issue in running project.
Had the same issue, and tried #usama-alaf reply, which consisted of:
Installing the right SDK for the Android device
Linking the SDK path under project/android/local.properties
But none of the above worked for me. Digging a little deeper, I found this Github issue from Willem Horsten, where the developer states that there was a yarn.lock file on one of his Hard Drives. I'm actually running my development environment on a secondary HD, and I also had a lock file in the root of the drive, but after deleting it, nothing changed.
Here's what actually worked for me. I was running Node v12, and trying to build the project, and trying to check whether the Node version was the culprit, I did this:
Deleted my node_modules, yarn.lock, and all other lock files I could find (for some reason there was also a package-lock.json file on the project)
Since I'm using NVM, I switched to Node v15.14.0 (the latest I have installed).
Installed the dependencies again with yarn install
Ran yarn android, and the build worked this time.
I am using gulp and lately I faced an error which I was unable to fix by reinstalling the plugin, typing PATH to node_modules global variable or rebuilding scss. Also I tried newer version of gulp, but I rolled the project back to the beginning as it didn't work.
In case if anyone would get stuck in such situation. I solved it with simple "npm rebuild". That's all you need.
This is insanely annoying. I have been working on a project for the past 1 week and absolutely no issue. All of a sudden, Expo decided to do this. It says "downloading javascript bundle" at 100%, yet it will not load my app. On my terminal it says
Finished building JavaScript bundle in 1319ms.
Running application on AOSP on IA Emulator.
I have reinstalled expo-cli and also expo on my emulator. Nothing works.
Please help. This is frustrating as I have been using expo for a while, with no issue at all. Normally when this happens I just restart my emulator and everything works fine. And then now....it is always stuck at "downloading javascript bundle"....
If I use my real phone, it says
Something went wrong. Could not load exp:/xxx.xxx.xx.exp.direct:80
I noticed this happened after installing expo-image-picker. Could this be the reason why? I uninstalled expo-image-picker but the issue is still here.
Solution 1:
This issue is because of any dependency that you have added into your project.
you can try removing last package that you have install.
Solution 2:
rm -rf node_modules
rm package-lock.json
npm start -- --reset-cache
npm install
Solution 3:
use yarn instead of npm, and always install the package using expo install your_package_name by this it will resolve version of package and install version which is compatible with expo
It is said that pictures speak louder than words so...
As you can see nodemon works just fine by itself as expected:
then when i get express to the project nodemon just keeps restarting due to changes
tried pretty much every solution i can find on the internet(including here on stack) for this problem nothing worked...
Can someone please tell me what's the problem and how to fix it?
I've met the same error in the past and you can try these following ways:
Solution 1: Uninstall your nodemon and install it again by executing
npm uninstall -g nodemon
then
npm install -g nodemon
Solution 2: Your computer maybe lack of environment. Add this
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\wbem;
into %PATH% environment variable which located in
Control Panel\System and Security\System
then move to
-> Advanced Settings System -> Environment Variables...
and reset your computer.
I hope these solutions work.
Intro
Hi there! I'm working on my first react-native app. After months of work, I am finally ready to deploy to Test Flight. I built the project in expo. Runs great on the expo simulator. Next step, run in Xcode. I encountered a few errors but managed to find my way. Until, I hit this error, which, I just cannot seem to get around.
What I have done:
1)Ejected ExpoKit
2)Run npm install
3)Run pod install in my ios directory
The Error:
Now, I am trying to compile in debug and release configurations but the build fails :(. Here is the error I am receiving
Not sure what to do. I have searched all around and can't seem to find a working solution... Any ideas??
Versions
React Native - 0.54.2
React Native CLI - 2.0.1
I solved my issue with these steps
update pod
install pod
removed node_modules and npm install
Not sure this will help anyone but it fixed my problem.