CMS Development

annecaylin
Participant

Test-Theme Folder Empty

SOLVE

Can anyone help me figure out what I did wrong here? Im currently taking the HubSpot CMS for Developers course. I have node.js and Hubsplot CLI installed. I'm at the point where I need to create the boiler plate template but it just creates an empty folder. The command in the course is "npx @hubspot/create-cms-project test-theme". I've seen other suggestions using the command "hs create website-theme test-theme" but "hs" isn't recognized as a command with my current set up. Please help 😞 

 

annecaylin_0-1714774343980.png

 

1 Accepted solution
Humashankar
Solution
Key Advisor

Test-Theme Folder Empty

SOLVE

Hi @annecaylin 

 

When creating a HubSpot CMS theme, an empty folder issue may arise due to a command discrepancy.

To troubleshoot, first ensure you're using the latest command, "npx @hubspot/create-cms-project test-theme", as the older command "hs create website-theme test-theme" might be outdated.

Next, verify that you have the latest HubSpot CMS CLI installed by running "npm list -g @hubspot/cms-cli" (or "yarn list -g @hubspot/cms-cli" if using yarn).

If not installed, install it globally using "npm install -g @hubspot/cms-cli" (or "yarn add global @hubspot/cms-cli").

Ultimately, ensure you have necessary permissions to create files and folders in the directory by running the command from your user directory.

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Humashankar VJ
HubSpot Community Champion and enthusiast | Engineering Manager

View solution in original post

1 Reply 1
Humashankar
Solution
Key Advisor

Test-Theme Folder Empty

SOLVE

Hi @annecaylin 

 

When creating a HubSpot CMS theme, an empty folder issue may arise due to a command discrepancy.

To troubleshoot, first ensure you're using the latest command, "npx @hubspot/create-cms-project test-theme", as the older command "hs create website-theme test-theme" might be outdated.

Next, verify that you have the latest HubSpot CMS CLI installed by running "npm list -g @hubspot/cms-cli" (or "yarn list -g @hubspot/cms-cli" if using yarn).

If not installed, install it globally using "npm install -g @hubspot/cms-cli" (or "yarn add global @hubspot/cms-cli").

Ultimately, ensure you have necessary permissions to create files and folders in the directory by running the command from your user directory.

 

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Humashankar VJ
HubSpot Community Champion and enthusiast | Engineering Manager