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

Getting TypeError when installing Ramadan CLI #13

Closed
mohsinht opened this issue Apr 3, 2022 · 1 comment
Closed

Getting TypeError when installing Ramadan CLI #13

mohsinht opened this issue Apr 3, 2022 · 1 comment

Comments

@mohsinht
Copy link

mohsinht commented Apr 3, 2022

Command:

npx ramadan-cli lahore

Error:

✖ UNHANDLED ERROR
✖ ERROR → TypeError
ℹ REASON → input.toLowerCase(...).replaceAll is not a function
ℹ ERROR STACK ↓ 
 TypeError: input.toLowerCase(...).replaceAll is not a function
    at /Users/mohsinhayat/.npm/_npx/19728/lib/node_modules/ramadan-cli/index.js:18:35
    at Object.<anonymous> (/Users/mohsinhayat/.npm/_npx/19728/lib/node_modules/ramadan-cli/index.js:23:3)
    at Module._compile (internal/modules/cjs/loader.js:1072:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
    at Module.load (internal/modules/cjs/loader.js:937:32)
    at Function.Module._load (internal/modules/cjs/loader.js:778:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at /Users/mohsinhayat/.nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/libnpx/index.js:268:14

Node version: v14.17.6
MacOS: 12.3
Npm version: 6.14.15

orimdominic added a commit to orimdominic/ramadan-cli that referenced this issue Apr 3, 2022
Related issue: [Getting TypeError when installing Ramadan CLI](ahmadawais#13)
@ahmadawais
Copy link
Owner

That's because I was using and always encourage using current Node version, but I see the LTS doesn't support .replaceAll() so I'll roll back. This is fixed now.

ahmadawais pushed a commit that referenced this issue Apr 3, 2022
* fix: replaceAll undefined

Related issue: [Getting TypeError when installing Ramadan CLI](#13)

* fix: replaceAll undefined

* Update theEnd.js
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

2 participants