I am trying to set up npx @hubspot-create-cms-project test-theme in VScode but it is not working for me. I was following every step from the course and was successful until this one. Does anyone know what can be the problem?
Hi @AMcGuire6,
can you please post the link to the tutorial you’re following?
For themes:
If you’re setting up local dev for the first time run
npm install -g @hubspot/cli
to install the CLI on your maschine.
Open the folder you want to create your theme in and run
hs create website-theme my-website-theme
hs: HubSpot (obviously) ![]()
create: create (obviously)
website-theme(first one): the name how you want to name your name locally / how your local theme is named
website-theme(the second one): the name how you want to name it in HubSpot(e.g: design-tools)
When you want to fetch an existing theme it’s
hs fetch website-theme website-theme
in this case the first website-theme is the name/path of your theme in HubSpot and the second one the name/path of your local theme
You can also do something like
hs fetch themes/website-theme themes/website-theme
If you want to create a CRM project run
hs project create
from the desired folder
hope that helps
best,
Anton
Thank you Anton but I don’t think my vscode accepts hs command I don’t know how to fix this it says
hs : the term ‘hs’ is not recognized as the name of cmdley, function, script file, or operable program
Try ‘npx hs’ - I have never managed to get my tools install to receognize the hs command
hi i tried and it doesnt work… i followed instructions from the course and this is what pops up when i run npx :
npx @hubspot/create-cms-project test-theme
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\durdi\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in: C:\Users\durdi\AppData\Local\npm-cache\_logs\2024-01-29T01_10_29_007Z-debug-0.log
when i run npx hs it shows:npx hs @hubspot/project-cms-project test-theme
[ERROR] Unknown arguments: @hubspot/project-cms-project, test-theme