Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Adonis CLI not work #120

Closed
emjeard opened this issue Jan 5, 2019 · 8 comments
Closed

Adonis CLI not work #120

emjeard opened this issue Jan 5, 2019 · 8 comments
Assignees

Comments

@emjeard
Copy link

emjeard commented Jan 5, 2019

Hi, after install adonis cli via npm and try on command prompt always show like this.

'adonis' is not recognized as an internal or external command,
operable program or batch file.

How to solve this?
thanks before

@RomainLanz
Copy link
Member

Hey @emjeard! 👋

Ensure to have the installation folder of your global NPM module in your PATH.

@triage-new-issues triage-new-issues bot removed the triage label Jan 5, 2019
@RomainLanz RomainLanz self-assigned this Jan 5, 2019
@RomainLanz
Copy link
Member

Closing since no answer from issue reporter.

@agwenchez
Copy link

After npm install -g @adonisjs/cli, i have tried to add a new path in system variables, pointing to the installation folder of the global NPM package but i still get the same problem, Adonis not recognized as an internal or external command, operable program or batch file.
Kindly assist .
Thanks

@Karlheinzniebuhr
Copy link

Same issue on windows 10 with npm version 6.9.0

@yusren
Copy link

yusren commented Jul 27, 2019

I also faced this problem.
Step one
Run npm i -g @adonisjs/cli with Non Administrator's access CLI.
then make sure the lines below are in the PATH list, both on user variables and system variables. Then restart the CLI. Give it try.
C:\Users\<username>\AppData\Roaming\npm

@mq003at
Copy link

mq003at commented Jul 31, 2019

It doesn't work for me. I tried to install but there is no adonis cli directory C:\Users\<username>\AppData\Roaming\npm\node_modules. I can't even find the .cmd files to put it in the PATH.
I have this issue with ionic, but quickly solve it by putting these .cmd files in system variables, but Adonis/cli github doesn't provide a .cmd file

@minhtranin
Copy link

i even faced with issue, can anyone help me ? kindly assist

@Trapintrovert
Copy link

I also faced this problem.
Step one
Run npm i -g @adonisjs/cli with Non Administrator's access CLI.
then make sure the lines below are in the PATH list, both on user variables and system variables. Then restart the CLI. Give it try.
C:\Users\<username>\AppData\Roaming\npm

Thank you. You saved a life!

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

No branches or pull requests

8 participants