You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AsyncAPI Generator is unable to install templates automatically, failing with a Cannot find module 'package.json' error. This affects all installation methods (Chocolatey, npm, development environment) and all platforms (Windows, Linux).
Expected behavior
Cross-Platform Impact
Confirmed Failing On:
Windows 10 (Chocolatey installation)
Linux (development environment)
All npm installations
Development environment
Screenshots
This issue was initially reported in the CLI repository: asyncapi/cli/#1743
How to Reproduce
: Using npm-published templates bashasyncapi generate fromTemplate asyncapi.yaml @asyncapi/nodejs-template
Expected: Template should be automatically downloaded and installed
Actual: Fails with "Installation failed" error
However, this is a different issue (template version compatibility), not the original installation bug.
Conclusion
The original template installation bug appears to have been resolved. The generator now correctly:
Downloads templates from npm registry
Resolves package.json files
Installs and uses templates without manual pre-installation
Recommendation: This issue can likely be closed, or maintainers can confirm if additional testing is needed on other platforms (Windows with Chocolatey, etc.).
Activity
shivansh-source commentedon Feb 12, 2026
@Adi-204 @Shurtu-gal can i start to work with this ?
shivansh-source commentedon Feb 12, 2026
Update: Bug Appears to be Fixed ✅
I've completed testing and can confirm the original bug no longer exists in the current version.
Test Results
Environment:
Test Performed:
npm uninstall -g @asyncapi/nodejs-template @asyncapi/html-templateasyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template -o ./docsResult: ✅ SUCCESS
Additional Finding
The
@asyncapi/nodejs-templateshowed a version compatibility issue with generator v3.1.2:shivansh-source commentedon Feb 12, 2026
However, this is a different issue (template version compatibility), not the original installation bug.
Conclusion
The original template installation bug appears to have been resolved. The generator now correctly:
Recommendation: This issue can likely be closed, or maintainers can confirm if additional testing is needed on other platforms (Windows with Chocolatey, etc.).
shivansh-source commentedon Feb 12, 2026