### Import and Initialize Alpine.js Module Source: https://alpinejs.dev/essentials/installation Import Alpine.js into your JavaScript bundle and start it. Registering extensions should happen between import and start. Ensure Alpine.start() is called only once. ```javascript import Alpine from 'alpinejs' window.Alpine = Alpine Alpine.start() ``` -------------------------------- ### Install Alpine.js via NPM Source: https://alpinejs.dev/essentials/installation Install Alpine.js as a project dependency using npm. This is the recommended approach for more complex projects or when using a build process. ```bash npm install alpinejs ``` -------------------------------- ### Include Alpine.js via CDN Source: https://alpinejs.dev/essentials/installation Add this script tag to the head of your HTML to include Alpine.js from a CDN. Ensure the 'defer' attribute is present. For production, hardcode the specific version. ```html ``` -------------------------------- ### Specify Alpine.js Version via CDN Source: https://alpinejs.dev/essentials/installation For production stability, use a specific version number in the CDN URL instead of a general version range. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.