Whenever I try to set up the local development tools on VS and run “npx @hubspot/create-cms-project test-theme”, the cloning always fails and the test-theme folder turns up empty. I thought that it may have to do deprecated messages I received with the installation of the command line but I am not sure.
First, did you install hubspot cli to your working pc ?
If you wanna check then typed “hs” on command prompt.
If display hs command list then install was success.
And, if hubspot cli install is success then you use “create” command of hs.
In particular, will typed next command.
hs create website-theme [name] [dest]
[name] is some theme name.
[dest] is save folder. It’s not requir. if current directly is save folder then you don’t have to typed.
Yes I tried installing the hupsot cli to my project and my working pc and neither have me results. I am trying to stick the video recommended for the certification but it just won’t let me move forward.
You must check the installing Node.js.
To do check to success of installing Node.js, to type next command.
node -v
If appear version number, its okey (ex: v12.14.0). Else if not success, 'cause you have to install Node.js again.
If you success installing Node.js then type next command and install hubspot cli.
npm install -g @hubspot/cli
And after installing, type next command.
hs
If you success installing hubspot cli then appear hs command list.
Let’s try and I hope your success.
I have both Node and hubspot cli installed. I was able to procure an access key and create an unique name to reference the account, but after that is when I try to create a theme from Boilerplates and fail.
All of that is correct except for the syntax for the create command. First, I have to use npx in front of all my commands since I am using the VS terminal. Second, the video recommended I use @hubspt/create-test-theme [ theme name] to clone the theme.
Hi there, I try to do that but I got this error below:
hs : File C:\Users\…\…\…\npm\hs.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ hs create website-theme sample-theme
+ ~~
+ CategoryInfo : SecurityError: ( [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess