first time using the cli for node.js. I have alre...
# sdf
r
first time using the cli for node.js. I have already installed the JDK and installed Cli via npm. When I type
suitecloud
in the CLI, I get this error
Copy code
suitecloud : The term 'suitecloud' 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.
At line:1 char:1
+ suitecloud
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (suitecloud:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
I followed the steps on how to setup found in Help
a
How did you install it? I mean the npm command, can you paste here the exact command?
And was the installation successful?
r
This was the command I used
npm install -g @oracle/suitecloud-cli
and it was successful. I just realized that the project folder has its own
node_modules
directory. Could that be the reason?
a
You didn't use sudo right?
r
windows machine, sudo is for linux only right
a
Ok. Project folder might have node_modules because of unit testing support. Maybe try installing again. Open a terminal, run the npm command again. Reopen the terminal and try suitecloud.
s
if it installed correctly it's possible that npm utilities are not in your command %PATH%
r
Do you now where I can check that? I am new to npm
s
in powershell you can use
$env:path
to spit out your path - then ensure that
node_modules/.bin
is somewhere in your path (assuming it's the same on windows). I use WSL for all my npm antics.
b
Also, may need to create a new cmd.exe console to pick up the changes to the PATH