I want to try the SuiteCloud CLI for Node.js. I s...
# sdf
c
I want to try the SuiteCloud CLI for Node.js. I started at https://3640472.app.netsuite.com/app/help/helpcenter.nl?fid=section_155929845760.html, which led me to think I should proceed by running
npx @oracle/suitecloud-cli
I got past a Python 2 vs Python 3 Windows path issue and now I have the error shown in the attached log. Anyone know what I should do? P.S. The log doesn't show it but the first output line after I ran
npx @oracle/suitecloud-cli
was
Copy code
Cannot download "<https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding.node>":
And then it continued automatically to the lines shown in the log.
s
I'd recommend running the cli via WSL rather than normal windows command prompt (at least that's what I do)
e
I do the same
s
I've long since gave up on trying to make windows prompt work well in the bash-shell-dominated world of web/js development.
precisely due to interesting errors like the one you hit above 🙂
e
also I find
cmd
to be a grating experience
s
I switched to powershell years ago, but now with WSL being 'from microsoft' I think it's the logical choice
a
why are you using
npx
?
c
@erictgrubaugh Try the new Terminal (by MS). It's replaced ConEmu for me
@Albert Margarit (NS Eng Lead) I went to https://3640472.app.netsuite.com/app/help/helpcenter.nl?fid=section_155929845760.html, which says "Create a folder in your machine and run 
npm install -g @oracle/suitecloud-cli
."
But below that it says "Important If you are using npm 5.2 or higher, refer to the official npm documentation: https://docs.npmjs.com/downloading-and-installing-packages-globally."
So I went there and at the top it says "Tip: If you are using npm 5.2 or higher, we recommend using 
npx
 to run packages globally."
So I did
@stalbert I tried to try WSL months ago but it won't run on my machine because, if I remember correctly, I had to disable a Windows feature that it relies on in order to keep VMWare working after an update to the latter, which I need for maintenance of a Delphi 6(!) application
s
three cheers for Delphi 🙂
maybe WSL2 will work if you tried WSL1 originally?
c
I actually didn't know that there was a WSL2, so thanks
However, I try to minimise the number of customisations I make to my machine so that it isn't too hard to set up a new machine. So I'm trying to stay with Windows Terminal and cmd.exe. It's been working fine so far
s
that's your choice, of course. Perhaps ironically, by using WSL, Webstorm and a web browser, "Windows" itself is rather irrelevant to me.
i.e. my development toolset is basically identical when I'm on my Linux Mint machine.
c
On which machine do you have to do more setup and maintenance of the machine itself (OS, software and config)?
s
Linux required very little setup/config and it gets constant updates that basically never force a reboot 🙂
c
Interesting
Must have come a long way since I last tried it
s
also interesting that my 10 year old mid-range desktop (Linux) is significantly faster than my 2018 upper end ThinkPad (Windows)
c
Anyway, @Albert Margarit (NS Eng Lead), I will be happy to take your advice, regardless of what NS Help says
a
I'd go with
npm install -g @oracle/suitecloud-cli
c
Ok, thanks. You might update the instructions to say that
I did that and now I have a different error...
a
are you running it with admin rights?
c
I wasn't, so I tried again as admin and got the attached error
a
Can you create an issue in GitHub so the team can look into it?
a
Thanks!