Someone how has got problems when using reactNative with GitHub and mixing between MAC and PC? We got problems when cloning a repository
After typing npm start we get following error message...
react-native-scripts start
sh: /Users/juliafalk/Desktop/J3/node_modules/.bin/react-native-scripts: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! J3#0.1.0 start: react-native-scripts start
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the J3#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/juliafalk/.npm/_logs/2018-03-28T07_09_02_393Z-debug.log
student251-74:J3 juliafalk$
This only occurs between MAC and PC and not between MAC and MAC or PC and PC.... Anyone that have had the same problem and that have any solutions for this??
Related
I'm updating a 3 years ago ruby on rails and react project trying to npm install but im stuck here getting this error
$ npm install
gyp: Undefined variable standalone_static_library in binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
$ npm start
sh: node-sass-chokidar: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! frontend#0.1.0 build-css: `node-sass-chokidar src/styles -o src/styles`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the frontend#0.1.0 build-css script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I tried removing node_modules, update node version and npm version.
For me this issue happened with NodeJS 19 (specifically 19.2.0)
The issue is fixed when I reverted to NodeJS 18; aka NodeJS LTS
NodeJS LTS = Long Term Support; "recommended for most users" - which at the time of this writing (12/9/2022) is NodeJS 18.12.1
It seems like this issue (Undefined variable standalone_static_library...) may happen because:
node 19.0.0 has been changed to make process.config read only #43627
After reverting, it may still be mentioned as a warning, but not an error:
npm ERR! (node:7120) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
And while we're talking about versions, be careful about Python3 vs Python2!
npm ERR! gyp verb which failed Error: not found: python2
I brought a new macbook pro m1 and i copied a react project that i am currently working in a windows laptop ,but it was not running and showing a permission denied message and the node modules folder is showing in a gray color in vs code.This project was perfectly running in my windows at the same time.
bimalboby#Bimals-MacBook-Pro netflix % npm start
> netflix#0.1.0 start /Users/bimalboby/Desktop/Projects/Netflix-clone/netflix
> react-scripts start
sh: /Users/bimalboby/Desktop/Projects/Netflix-clone/netflix/node_modules/.bin/react-scripts: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! netflix#0.1.0 start: `react-scripts start`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the netflix#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bimalboby/.npm/_logs/2021-06-14T04_42_21_515Z-debug.log
bimalboby#Bimals-MacBook-Pro netflix %
sh: 1: node-pre-gyp: Permission denied
The app compiles and works well locally, so i'm pretty sure it's something with the deployment settings.
Here is the full error:
sh: 1: node-pre-gyp: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! canvas#2.6.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the canvas#2.6.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.PnhI1/_logs/2020-08-01T15_10_47_770Z-debug.log
you can follow this wiki https://github.com/Automattic/node-canvas/wiki/Installation:-Heroku for node-canvas/canvacord installation on Heroku.
I always get this error when I try to install brain.js using npm install brain.js
Here is the error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gl#4.4.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gl#4.4.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I solved the problem by reinstalling node.js Some packages had issues and when I reinstalled it solved. Thanks for everyone who tried to answer or answered my question :)
So I am trying to run a simple react-native app on an iPhone 11 - 13.2.2 emulator.
I type npm run ios but I get this back.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/build/confusion/Build/Intermediates.noindex/confusion.build/Debug-iphonesimulator/confusion.build/Objects-normal/x86_64/AppDelegate.o /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/confusion/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/build/confusion/Build/Intermediates.noindex/confusion.build/Debug-iphonesimulator/confusion.build/Objects-normal/x86_64/main.o /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/confusion/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # ios: `react-native run-ios`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/theodosiostziomakas/.npm/_logs/2019-11-16T12_38_06_754Z-debug.log
I used npm install but still nothing. How to fix that error?
Thanks,
Theo.
alternatively you can run from the workspace file, sometimes running from npm in ios will not give you the exact error.
You have to run the following file in your workspace and select the simulator/iphone and finally launch the project.
Path to the workspace :- ProjectFolder/ios/projectname.xcworkspace