Harp is a zero-configuration static web server, generator, and bundler for Node.js. It implicitly pre-processes a wide range of web assets, including Jade, Markdown, EJS, Less, Stylus, Sass, SCSS, CoffeeScript, JSX, and CJS, converting them into HTML, CSS, and JavaScript. The current stable version is 0.47.2, with recent releases primarily focusing on critical security patches and maintenance rather than new feature development, indicating a mature but less actively evolving project. Harp differentiates itself by offering a simple, fast, and lightweight solution that aims to avoid complex build steps or task runners. It features first-class layout and partial support, intelligent path redirects, and the crucial ability to export an entire project to static assets for easy deployment. It also includes implicit vendor prefixing for CSS preprocessors via Autoprefixer. Harp is ideal for publishing simple front-ends with minimal setup and low cognitive overhead, positioning itself as an alternative to heavier web frameworks.
npm install harpVerified import paths — ran on the pinned version, not inferred.
Installs Harp globally, creates a new project with a Jade template and SCSS stylesheet, starts the development server, and then compiles the project to static assets.
Upgrade to `harp@0.40.2` or later immediately. Ensure all deployments use a patched version.
Review your project for implicit symlink usage. If symlinks are essential, consider restructuring your project or carefully using the `--deny-symlinks` flag with appropriate security considerations.
Ensure Harp is used within a CommonJS environment or project. If integrating with ESM, consider using a CJS wrapper or bundler that correctly handles CJS dependencies.
Avoid using `harp@0.20.2`. If you are on this version, upgrade to `v0.20.3` or any later stable version to resolve these issues.
Refer to Harp's `package.json` for recommended Node.js versions. If encountering issues, try running with Node.js LTS versions (e.g., Node 16 or 18 at the time of v0.47.2's release) or check specific preprocessor library compatibility.
Specify a different port using `harp --port <new_port>` or `harp -p <new_port>`. Ensure no other processes are running on the desired port.
Restructure your project to avoid symlinks for publicly served files, or if you understand the security implications, verify Harp's documentation for overriding this behavior (if available, generally not recommended).
Ensure your project is configured as a CommonJS module (`'type': 'commonjs'` in `package.json` or by not specifying `type` for older Node.js versions) when using Harp, or use a tool like Webpack to bundle CJS modules for ESM consumption if absolutely necessary.
Upgrade Harp to `v0.20.3` or a later version. If the issue persists on newer versions, simplify complex template structures or report the issue to the Harp repository.
No dependency data recorded yet.