question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

autorest 3.5.1 does not run in apple m1

See original GitHub issue

Before 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chenrui333commented, Mar 8, 2022

Works for me, closing the issue now.

0reactions
chenrui333commented, Mar 8, 2022

the typescript generator works for me, gonna try it out on CI. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found