I'm trying to connect the newest Theme Development Tools - 23.2.0 to our Sandbox but it will connect. I am suspecting this has to do with a refresh from Production to Sandbox a few months ago and a problem with the tokens. This is the error I receive after executing 'gulp theme:fetch' and selecting an existing token (where does gulp even get this list?) or creating a new one:
(node:52439) UnhandledPromiseRejectionWarning: Error: Missing parameters --key or --secret. Check your .env file or add those parameters to the gulp task
at new OAuth1 (/Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/ns_npm_repository/oauth1/index.js:37:19)
at Function.getInstance (/Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/gulp/ns-deploy/net.js:27:30)
at authorize (/Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/gulp/ns-deploy/net.js:333:36)
at waterfall (/Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/ns_npm_repository/ns-async/src/waterfall.js:8:17)
at innerCb (/Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/ns_npm_repository/ns-async/src/waterfall.js:5:32)
at /Users/<user>/WebstormProjects/ThemeDevelopmentTools-23.2.0-Sandbox/gulp/ns-deploy/ui.js:202:17
at processTicksAndRejections (internal/process/task_queues.js:95:5)
I've tried completely removing node.js and gulp, which led to my sub-question above about from where gulp is pulling the list of tokens since I expected it to be blank after I removed all traces of node.js and gulp.
I've been working on this the better part of two days and cannot find a solution. When I check the .env file, the CONSUMER_KEY and CONSUMER_SECRET are blank. Thinking this might be the problem, I went to regenerate them on the SC-TBA integration that I initially setup and worked on previous Theme Development Tools, but the Reset Credentials button does not even appear when I edit the record. I have full Administrator access and am the one that created the initial record, so this makes no sense either.
At this point, I can do nothing to update our SuiteCommerce theme or extensions. This is a major problem.