Is it too early to jump on the new v1.4 of the sui...
# sdf
d
Is it too early to jump on the new v1.4 of the suitecloud CLI?
d
@Ali Syed (NS DevTools QA) yah I get an error when trying to install as well seems something changed/wrong with preinstall script https://github.com/oracle/netsuite-suitecloud-sdk/blob/master/packages/node-cli/preinstall.js
d
Ya, no chance to say yes ...
I also notice that NetSuite 2022.1 is required
a
There is nothing wrong, its just that you have to accept license terms
Are these logs from ci/cd pipeline?
d
@Ali Syed (NS DevTools QA), theres no prompt to allow us to choose yes
a
Which terminal is it?
And OS?
d
bash .. macos
a
Are you up for a quick screen sharing session?
d
On a call currently, but ya .. I could do that ... give me 30 mins or so?
a
Ok
j
Yeah, my build server reported that same issue. Node 12
I just bound to 1.3.2, for now as my front end code kinda needs node 12
a
in ci/cd pipelines it's supposed to fail. There is flag you need to pass to suppress that prompt in ci/cd pipelines
Copy code
npm install -g --supressSuiteCloudSDKLicensePrompt @oracle/suitecloud-cli
d
I tried that too @Ali Syed (NS DevTools QA)... no go
j
@Ali Syed (NS DevTools QA) if you wouldn’t mind, could you point me to the release notes?
👍 1
a
@darrenhillconsulting your node version?
d
v16.13.0
d
I am on same node version, windows the
npm install -g --supressSuiteCloudSDKLicensePrompt @oracle/suitecloud-cli
worked for me though 🙂 Edit: note this is just manually running in terminal, not with respect to CI/CD
d
npm install -g --supressSuiteCloudSDKLicensePrompt @oracle/suitecloud-cli doesn't work for me
😢 1
d
@Ali Syed (NS DevTools QA) could you go a bit more in-depth on why this change was made with respect to CI/CD? typically wouldn't it be desirable to just run
npm install
for all package.json at once https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/npm?view=azure-devops are you suggesting now I would need to separate the installation step of suitecloud-cli pkg with this flag? or can this all still be combined
j
@dbarnett I’m really curious about your use case. I’m trying to work with netsuite like a database where I’d manage db migrations for the rest of our saas app. I’ve got some SDF packages that include saved searches/restlets custom fields etc.
a
This change was introduced because of a legal requirement that when a user is installing the CLI, the license will appear and you will accept with
Yes/No
But we realized that some devs have automation based on suitecloud cli, so we added an additional flag which can be passed along with
npm i
command or can be set set via
npm config set
command. WIth this flag, the license will be displayed but no prompt will be required to download the dependencies
👍 2
d
thanks ^ just to follow if anyone running into this,
npm install --supressSuiteCloudSDKLicensePrompt
in context of build pipeline step worked fine
l
Neither
Copy code
npm install --supressSuiteCloudSDKLicensePrompt
nor
Copy code
npm install -g --supressSuiteCloudSDKLicensePrompt @oracle/suitecloud-cli
work for me, I still get the same Installation aborted by user error. On Mac OS 12.2.1 and zsh
Same error on my Windows machine in WSL2 too
a
@LJ please check the pre-requisites to download this.
You should have Node 14 and NPM
6.x
👍 1
l
Thanks @Ali Syed (NS DevTools QA), I thought it was OK to use any node version from 14.16 onwards.
nvm use 14.16.0
and then
npm install -g --supressSuiteCloudSDKLicensePrompt @oracle/suitecloud-cli
worked a treat.