Closed rhokue closed 5 years ago
I guess, what I'm actually asking for is what the non-npm dependencies preset-react-app has.
@rhokue none. Can you give more info about node/npm/yarn/macos? The thing failing seems to be oniguruma, which is an npm dep that require native build (not sure what dep require this one...)
Thanks, @MoOx!
Mac OS version is 10.14.3.
The last three lines in the posted error log contain:
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
But when I run node --version
it returns v8.15.0
. That's probably because the installation uses a different node-version than globally installed.
Yarn version is 1.13.0.
That's probably because the installation uses a different node-version than globally installed
That may be a reason for an error. Can you try to use a consistent version of node & see if the error is still here?
Okay, I will try.
I also just tried out "npm i --save-dev" instead of "yarn add --dev". I got this error log.
@MoOx, I installed only that version of node globally which was used during the installation, that is 10.15.0. NPM has version 6.8.0 globally and during installation.
I also just did
rm -r *
echo '{"private":true}' > package.json
npm install --save-dev react react-dom react-router@^3.2.0 @phenomic/core @phenomic/cli
But when I do npm install --save-dev @phenomic/preset-react-app
, I get these messages:
$ npm install --save-dev @phenomic/preset-react-app
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
> fsevents@1.2.7 install /Users/username10/some/path/node_modules/fsevents
> node install
> oniguruma@7.0.2 install /Users/username10/some/path/node_modules/oniguruma
> node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn sh ENOENT
npm ERR! file sh
npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! oniguruma@7.0.2 install: `node-gyp rebuild`
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the oniguruma@7.0.2 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! /Users/username10/.npm/_logs/2019-03-25T14_06_43_371Z-debug.log
And this is the log.
Weird. oniguruma is failing when using node-gyp. What a mess. What is your macOS version please?
Oh, sorry, my last post was trash. I had node-gyp uninstalled globally. I guess, I need it globally installed, right?
You should NOT need anything globally installed. Global install are creating problems more than they solves...
Hmm, sorry for bother you, @MoOx, with this oniguruma issue.
I installed bash node-gyp and bash globally. (The sh
command was missing in PATH.)
When I try to install preset-react-app with npm, I get this message and this error log.
When I try to add preset-react-app using yarn, I get this output.
As I said, Mac-OS version is 10.14.3. And:
$ uname -a
Darwin some-hostname 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin
Again, you should not install anything globally. node-gyp is used internally by module that have native modules. I just tried a fresh install with node 10, latest npm & build is ok. There is probably something wrong with your setup & I don't know what this is :/ Maybe check oniguruma issues
Alright, thank you.
I was able to successfully get started on plain NixOS/Linux (instead of MacOS).
Hello. First of all, thank you very much for this amazing project which is exactly what I have been looking for!
I'm currently trying to follow the installation guide for preset-react-app. I ran:
Afterwards, when I run
yarn add --dev @phenomic/preset-react-app
, I get the following error:I am on Mac-OS, using nix package manager. What am I missing? Thanks in advance for your help.