Once running npm run package-linux, I get this error.
CANNOT RUN WITH NODE 17.7.2
Electron Packager requires Node 4.0 or above.
I have looked at the bug report on the electron github page but have not found any fixes that worked for me. That's why I have resorted to stackoverflow.
I hope you guys can help me :)
Related
I wanted to start practicing with React to make a simple app. Went ahead and downloaded homebrew and node onto my computer. As I build my app with yarn install I get to the end where it tells you happy hacking. But when I run yarn start it gives me an error message.
-There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provided by Create React App requires a dependency:
"eslint": "^6.6.0"
Don't try to install it manually: your package manager does it automatically.
However, a different version of eslint was detected higher up in the tree:
/Users/zacharyschneider/node_modules/eslint (version: 5.16.0)
Manually installing incompatible versions is known to cause hard-to-debug issues.
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
2. Delete node_modules in your project folder.
3. Remove "eslint" from dependencies and/or devDependencies in the package.json file in your project folder.
4. Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem.
If this has not helped, there are a few other things you can try:
5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.
This may help because npm has known issues with package hoisting which may get resolved in future versions.
6. Check if /Users/zacharyschneider/node_modules/eslint is outside your project directory.
For example, you might have accidentally installed something in your home folder.
7. Try running npm ls eslint in your project folder.
This will tell you which other package (apart from the expected react-scripts) installed eslint.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
zacharyschneider#Zacharys-MBP %
A way to solve this issue or help me understand what is going on that would be great or point me in the right direction to find resources.
Thanks for your Help
It seems like you have installed es-lint 5.16.0 manually, and it conflicts with the needed version (6.6.0).
Have you tried the steps suggested in the error message?
Do you explicitly tell the es-lint version in your package.json? Could you share your package.json if you continue to experience the issue?
Failed to find rctbridgemodule.h
Hey guys,
i got this issue with xcode for my react-native project.
My coworker updated our project to a new revision and updated react-native itself how he said. After that the IOS Build doesn't work like it used to.
Android is all set, everything works just as beautiful as before.
I tried to solve it with this solution:
https://github.com/brentvatne/react-native-svgkit/issues/11
but it didn't work for me.
Just deleted and installed the node_modules a couple of times and reinstalled it using npm i and npm install.
But no success.
Would be a blessing if you could help me!
I had a developer create a Docker file for me -- and it's worked for months flawlessly. Recently I formatted my mac to clean some space, and re-ran the command to build the Docker container, and I got the following error:
See this screenshot
I'm not quite sure what the problem is. It builds properly on my other machines, but it's giving me a hard time on this new fresh install. I'm not a technical person, thanks everyone.
By looking at your screenshot it seems like you are not installing npm.
Please add npm to your apt-get install RUN command.
I am trying to create an ionic app on Mac.
I followed the instructions on ionic's website to create a basic app and was able to run it in the browser but when I run "ionic build ios" I get following error. I cannot find a log file or any other error to debug this. How do I go about fixing this?
Check your Gulp version and gulpfile.js. You may need to remove the calls to gulp.src
See:
Gulp TypeError: Arguments to path.join must be strings
and
https://github.com/sindresorhus/gulp-ruby-sass/issues/191
ok, after lot of looking and searching I figured my npm install was messed up.
Part of my installs were in /usr/local and few of them were in /User/user.name/npm folders. /Users/user.name/npm was set in the npm config prefix.
I had two installs of cordova, one on each folder above. Some how the cordova from /usr/local was getting used to create the project and that was the old version.
To fix the problem, I uninstalled all my global npm installs and pointed my npm config prefix to /usr/local and gave myself execute permission on that folder. Everything is working now.
Here is the video that explains how to do it: https://docs.npmjs.com/getting-started/fixing-npm-permissions
When I try the examples from the book i get lots of error and nothing gets installed. What am I missing, when looking for examples on the the internet my bower.json looks ok.
Se this link for code and more info:
This is a known issue with a tmp dependency. Bower has since been updated though to fix it (build 1.3.8). I see you still have an older version. Please run
npm update -g bower
to update bower to the final release and try again.