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

raml2boot is not recognized as command after installing #8

Open
cascer1 opened this issue Aug 31, 2016 · 5 comments
Open

raml2boot is not recognized as command after installing #8

cascer1 opened this issue Aug 31, 2016 · 5 comments

Comments

@cascer1
Copy link

cascer1 commented Aug 31, 2016

I first ran npm install -g raml2boot and it completed. Then when I ran raml2boot api.raml I got the following error:

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

@joelpresence
Copy link

I also see this - there's no command and I can't use it. +1 :-(

@Tzaphkiel
Copy link

+1

@T-vK
Copy link

T-vK commented Apr 12, 2018

Still waiting for a fix.

@imoore
Copy link

imoore commented Nov 5, 2018

I have the same issue on windows with [email protected]

raml2boot : The term 'raml2boot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.

@imoore
Copy link

imoore commented Nov 9, 2018

I have managed to hack a fix on Windows 10 by making a cmd file in C:\Users\put.your.own.user.name\AppData\Roaming\npm\raml2boot.cmd

Add the code below to the file

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\raml2boot\bin\raml2boot" %*
) ELSE (
  @SETLOCAL
  @SET PATHEXT=%PATHEXT:;.JS;=;%
  node  "%~dp0\node_modules\raml2boot\bin\raml2boot" %*
)

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

5 participants