Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx ignite-cli new PizzaApp --> gluegun/build/index.js:13 throw up; #1655

Closed
tdautreme opened this issue Apr 16, 2021 · 8 comments
Closed

npx ignite-cli new PizzaApp --> gluegun/build/index.js:13 throw up; #1655

tdautreme opened this issue Apr 16, 2021 · 8 comments

Comments

@tdautreme
Copy link

What's going on?

Can't create ignite project on windows, same as infinitered/gluegun#735
C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\gluegun\build\index.js:13
throw up;
^

TypeError: Cannot read property 'replace' of undefined
at C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build\commands\new.js:137:26 at step (C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build\commands\new.js:44:23)
at Object.next (C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build\commands\new.js:25:53)
at fulfilled (C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build\commands\new.js:16:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Steps to reproduce

npx ignite-cli new PizzaApp

ignite doctor results:
C:\Users\timda\Desktop\Projets\React native\shopping lists>npx ignite-cli doctor
System
platform win32
arch x64
cpu 12 cores Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
directory shopping lists C:\Users\timda\Desktop\Projets\React native\shopping lists

JavaScript (and globally-installed packages)
node 12.18.3 C:\Program Files\nodejs\node.EXE
npm 7.0.10 C:\Program Files\nodejs\npm.CMD
npm 7.0.10
yarn 1.22.10 C:\Users\timda\AppData\Roaming\npm\yarn.CMD

Ignite
ignite-cli 6.7.0 C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules.bin\ignite.CMD
ignite src build C:\Users\timda\AppData\Local\npm-cache_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
java 1.8.0_281 C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.EXE
android home - C:\Users\timda\AppData\Local\Android\Sdk

@elam76
Copy link

elam76 commented Apr 18, 2021

Same issue on Ubuntu 20.04

ignite-cli new PizzaApp

· · · · · · · · · · · · · · · · · · 🔥 Ignite 🔥 · · · · · · · · · · · · · · · · · ·

█ Creating PizzaApp using Ignite 6.8.0
█ Powered by Infinite Red - https://infinite.red
█ Using react-native-cli
────────────────────────────────────────────────

🔥 Igniting app
🧊 Cooling print nozzles
☕️ Baking CocoaPods

/home/abc/.config/yarn/global/node_modules/gluegun/build/index.js:13
throw up;
^
yarn run v1.22.4
warning ../../../package.json: No license field
error Command "format" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

ignite doctor results:
System
platform linux
arch x64
cpu 8 cores Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
directory moblie /home/abc/projects/moblie

JavaScript (and globally-installed packages)
node 15.14.0 /usr/local/bin/node
npm 7.9.0 /usr/local/bin/npm
@google-cloud/functions-emulator 1.0.0-beta.6
express-generator 4.16.0
jslint 0.12.1
n 6.5.1
npm 7.9.0
react-native-cli 2.0.1
yarn 1.22.10
yarn 1.22.4 /home/abc/.yarn/bin/yarn
create-react-app 3.4.1
express-generator 4.16.0
forever 1.0.0
ignite-cli 6.8.0
serve 11.3.2
storybook 1.0.0
typescript 3.5.3

Ignite
ignite-cli 6.8.0 /home/abc/.yarn/bin/ignite
ignite src build /home/abc/.config/yarn/global/node_modules/ignite-cli/build

Android
java 11.0.10 /usr/bin/java
android home - /home/abc/Android/Sdk

@nirre7
Copy link
Collaborator

nirre7 commented Apr 18, 2021

Hi.

@elam76 Try to remove react-native-cli from your global installs, the version you have installed is very old.
@tdautreme You could also try using nvm for getting a NodeJS LTS version with no global installs and try again.

Hope it helps.

@elam76
Copy link

elam76 commented Apr 19, 2021

Hi.

@elam76 Try to remove react-native-cli from your global installs, the version you have installed is very old.
@tdautreme You could also try using nvm for getting a NodeJS LTS version with no global installs and try again.

Hope it helps.

Thanks, removing react-native-cli from global installs fixed this issue!

@humarkx
Copy link

humarkx commented Apr 20, 2021

Hi.

@elam76 Try to remove react-native-cli from your global installs, the version you have installed is very old.
@tdautreme You could also try using nvm for getting a NodeJS LTS version with no global installs and try again.

Hope it helps.

This solution didn't work for me on Apple M1.

@nirre7
Copy link
Collaborator

nirre7 commented Apr 21, 2021

@maqeelqureshi
Copy link

Facing dependency issue while creating new PizzaApp

C:\Users\Dev Aadi\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\gluegun\build\index.js:13
    throw up;
    ^
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0" from @react-native-community/[email protected]
npm ERR! node_modules/@react-native-community/masked-view
npm ERR!   @react-native-community/masked-view@"0.1.10" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Dev Aadi\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Dev Aadi\AppData\Local\npm-cache\_logs\2021-06-04T19_36_21_710Z-debug.log

(Use node --trace-uncaught ... to show where the exception was thrown)

@vaibhavarora14
Copy link

Facing same issue with 7.0.3
Even without global installs of react-native-cli

@chaudhryjunaid
Copy link

facing same issue with 7.0.8 on macbook m1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants