ignite new testApp misses react-native-cli despite it being installed
See original GitHub issueI installed the react-native-cli and did a react-native init testApp followed by react-native run-ios and all the world was good 😃
Then I cd ~ && npm install react-native-ignite -g followed by ignite new testApp which had me left with this:
$ ignite new testApp
This command requires yo to be installed.
Installing yo...
(node:55281) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/Users/walther/.node/bin/yo-complete -> /Users/walther/.node/lib/node_modules/yo/lib/completion/index.js
/Users/walther/.node/bin/yo -> /Users/walther/.node/lib/node_modules/yo/lib/cli.js
> yo@1.8.5 postinstall /Users/walther/.node/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
✔ NODE_PATH matches the npm root
Everything looks all right!
/Users/walther/.node/lib
└── yo@1.8.5
🔥 Setting testApp on FIRE! 🔥
-----------------------------------------------
( ) (
)\ ) ( ( /( )\ ) * )
(()/( )\ ) )\()) (()/( ` ) /( (
/(_)) (()/( ((_)\ /(_)) ( )(_)) )\
(_)) /(_))_ _((_) (_)) (_(_()) ((_)
|_ _| (_)) __| | \| | |_ _| |_ _| | __|
| | | (_ | | .` | | | | | | _|
|___| \___| |_|\_| |___| |_| |___|
-----------------------------------------------
An unfair headstart for your React Native apps.
https://infinite.red/ignite
-----------------------------------------------
Igniting testApp
𝗫 Missing react-native - 'npm install -g react-native-cli'
$ npm list react-native-cli
/Users/walther
└── react-native-cli@1.0.0
$
Finally I tried to verify that the react-native-cli was actually there - which npm list react-native-cli seems to support ? So now I’am at a loss as to what next, debugging-wise?
Oh - and ignite doctor tells me this:
$ ignite doctor
/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/ramda/dist/ramda.js:4307
return str.trim();
^
TypeError: Cannot read property 'trim' of null
at Object.trim (/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/ramda/dist/ramda.js:4307:27)
at Object.f1 [as trim] (/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/ramda/dist/ramda.js:446:27)
at Command.<anonymous> (/Users/walther/.node/lib/node_modules/react-native-ignite/index.js:116:36)
at Command.listener (/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/commander/index.js:301:8)
at emitTwo (events.js:106:13)
at Command.emit (events.js:191:7)
at Command.parseArgs (/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/commander/index.js:615:12)
at Command.parse (/Users/walther/.node/lib/node_modules/react-native-ignite/node_modules/commander/index.js:458:21)
at Object.<anonymous> (/Users/walther/.node/lib/node_modules/react-native-ignite/index.js:133:21)
at Module._compile (module.js:541:32)
$
Issue Analytics
- State:
- Created 7 years ago
- Comments:28 (11 by maintainers)
Top Results From Across the Web
ignite new MyTestApp hangs on "Running React Native setup ...
Currently I am having the same issue. Firstly it says "Missing android SDK 23" even though I have specifically installed this SDK and...
Read more >Ignite CLI (React Native) + Facebook SDK = Android Multidex?
Essentially, it seems needing to use multiDexEnabled true is not best practice, as it means the app is getting "big", aka bloated. But...
Read more >Speeding up your Build phase - React Native
Building your React Native app could be expensive and take several minutes of developers time. This can be problematic as your project grows...
Read more >IGNITE - React Native Framework/Boilerplate Tutorial - YouTube
React Native is awesome but there are still some sharp edges. I explain how we're making Ignite the go-to CLI for a delightful...
Read more >How to implement over the air updates with expo ... - Red Shift
I first spun up a new Ignite app. If you're not familiar with Ignite, it's the most popular React Native CLI and boilerplate,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

well - Steve
it’s as if you’re psychic 😃
did a quick
$ more ~/.bash_profile #!/usr/bin/env bash
echo ‘.bash_profile start’
PATH additions --------------------------
mysql
PATH=“/usr/local/mysql/bin:$PATH”
npm
PATH="/usr/local/share/npm/bin:~/.node/bin:$PATH” —snip—
and for good measure
$ more ~/.bashrc
System-wide .bashrc file for interactive bash(1) shells.
export PS1='$ ’
Make bash check its window size after a process completes
shopt -s checkwinsize
export PATH=$HOME/local/bin:$PATH
PATH=$HOME/local/bin:$HOME/bin:$HOME/.node/bin:$PATH
I did the .bashrc ‘add-on’ - but the .bash_profile was sitting there all the time! This is an important lesson (even with 20 years of *nix under my belt - most of which were decent scripting, bashing, etc - but it never crossed my mind to distinguish between the two SOG’s) 😉
cheers, Walther
Actually - I woun’t 😃
What I did was ponder - and then I added $HOME/.node/bin to my PATH!
That helped ignite along - and everybody may now return to their stations and have a biscuit and a cup’o’tea 😄
Sorry for all the commotion