autorest 3.5.1 does not run in apple m1
See original GitHub issueBefore filling a bug
- have you checked the faq for known issues.
- have you checked existing issues
Describe the bug
Failed to run autorest in apple M1.
$ /opt/homebrew/Cellar/autorest/3.5.1_1/bin/autorest --input-file=petstore.yaml --nodejs --output-folder=petstore
SourceMapConsumer.initialize is a no-op when running in node.js
AutoRest code generation utility [cli version: 3.5.1; node: v16.14.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
info | AutoRest core version selected from configuration: ~2.0.4413.
installing core... [========================================] 100% | 2/2
Loading AutoRest core '/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist' (2.0.4421)
Installing AutoRest extension '@microsoft.azure/autorest.nodejs' (~2.1.25)
Failed to install or start extension '@microsoft.azure/autorest.nodejs' (~2.1.25)
Error: Package '@microsoft.azure/autorest.nodejs' - '2.1.128' failed to install:
Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest.nodejs/-/autorest.nodejs-2.1.128.tgz' -- Error: Process Failed.Error: Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest.nodejs/-/autorest.nodejs-2.1.128.tgz' -- Error: Process Failed.
at install (/node_modules/@microsoft.azure/extension/dist/main.js:303:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExtensionManager.installPackage (/node_modules/@microsoft.azure/extension/dist/main.js:472:13)
at async Configuration.CreateView (/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist/lib/configuration.js:685:51)
at async AutoRest.RegenerateView (/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist/lib/autorest-core.js:55:29)
at async currentMain (/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist/app.js:303:20)
at async mainImpl (/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist/app.js:506:20)
at async main (/Users/rui/.autorest/@microsoft.azureautorest-core@2.0.4421/nodemodules/@microsoft.azure/autorest-core/dist/app.js:530:20)
Expected behavior
Should passed the test
Additional context relates to https://github.com/Homebrew/homebrew-core/pull/96527
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Autorest does not start code generation · Issue #3560 - GitHub
51) Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55) DEBUG [10.54 s]: swagger-document/loader-swagger - START ...
Read more >List of apps that are not working with M1 macbook
Application M1 optimized Rosetta 2
Wine 🚫 🚫
DAZ Studio 🚫 🚫
Quake 🚫 🚫
Read more >AutoRest Versioning
The CLI – the command line tool itself, bootstraps the core module, doesn't handle any processing directly. The Core module – when you...
Read more >autorest - Homebrew Formulae
autorest. Install command: brew install autorest ... Formula JSON API: /api/formula/autorest.json ... Apple Silicon, ventura, ✓. monterey, ✓.
Read more >Home - Mirantis Kubernetes Engine - Docs
This ensures that user workloads do not run on swarm-only nodes, which MKE taints with com.docker.ucp.orchestrator.kubernetes:NoExecute . It also adds a node ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works for me, closing the issue now.
the typescript generator works for me, gonna try it out on CI. Thanks!