<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cheat sheet and error fixes for building theme files locally. in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921975#M37870</link>
    <description>&lt;P&gt;Happy to help! Let me know if you have any questions.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 17:15:43 GMT</pubDate>
    <dc:creator>jasoncampbelldv</dc:creator>
    <dc:date>2024-02-13T17:15:43Z</dc:date>
    <item>
      <title>Cheat sheet and error fixes for building theme files locally.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921417#M37845</link>
      <description>&lt;P&gt;I did the HubSpot CMS Best Practices for Developers training and wanted to share my notes incase they are useful to anyone else...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;Commands/steps to install&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Install hubspot tools and node_modules:&lt;/STRONG&gt;&lt;BR /&gt;npm install &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/cli&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create yml config file:&lt;/STRONG&gt;&lt;BR /&gt;npx hs init&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create theme:&lt;/STRONG&gt;&lt;BR /&gt;npx &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63720"&gt;@hubspot&lt;/a&gt;/create-cms-project test-theme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create template:&lt;/STRONG&gt;&lt;BR /&gt;npx hs create template templates/basic-page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Upload theme:&lt;/STRONG&gt;&lt;BR /&gt;npx hs upload test-theme/src test-theme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Watch for updates automatically:&lt;/STRONG&gt;&lt;BR /&gt;npx hs watch test-theme/src test-theme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Error Fixes&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; Cannot find module 'node:path'&lt;BR /&gt;&lt;STRONG&gt;Fix:&lt;/STRONG&gt; Update node&lt;BR /&gt;sudo npm cache clean -f (force) clear your npm cache&lt;BR /&gt;sudo npm install -g n install n (this might take a while)&lt;BR /&gt;sudo n stable upgrade to the current stable version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; yarn not found&lt;BR /&gt;&lt;STRONG&gt;Fix:&lt;/STRONG&gt; install yarn&lt;BR /&gt;npm install --global yarn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; xcrun: error: invalid active developer path&lt;BR /&gt;&lt;STRONG&gt;Fix:&lt;/STRONG&gt; install xcode&lt;BR /&gt;xcode-select --install&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 00:08:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921417#M37845</guid>
      <dc:creator>jasoncampbelldv</dc:creator>
      <dc:date>2024-02-13T00:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cheat sheet and error fixes for building theme files locally.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921444#M37846</link>
      <description>&lt;P&gt;Awesome, thanks for sharing&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/707244"&gt;@jasoncampbelldv&lt;/a&gt; - I also ran into these errors when I switched from PC to Mac and didn't take the time to resolve them, looking forward to setting up the CLI again to see if I can get it working on my Mac.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 01:29:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921444#M37846</guid>
      <dc:creator>Jnix284</dc:creator>
      <dc:date>2024-02-13T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cheat sheet and error fixes for building theme files locally.</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921975#M37870</link>
      <description>&lt;P&gt;Happy to help! Let me know if you have any questions.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:15:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cheat-sheet-and-error-fixes-for-building-theme-files-locally/m-p/921975#M37870</guid>
      <dc:creator>jasoncampbelldv</dc:creator>
      <dc:date>2024-02-13T17:15:43Z</dc:date>
    </item>
  </channel>
</rss>

