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.

Unable to find a valid AutoRest core package '@autorest/core'

See original GitHub issue

Describe the bug

Installed autorest using command npm install -g autorest I need autorest 2.0.4413 version but changing version I have failure from 2 different machines…

AutoRest code generation utility [cli version: 3.0.6322; node: v12.18.3, max-memory: 2048 MB]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Failure:
Error: Package '@microsoft.azure/autorest-core' - '2.0.4413' failed to install:
  Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest-core/-/autorest-core-2.0.4413.tgz' -- Error: Process Failed.Error: Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest-core/-/autorest-core-2.0.4413.tgz' -- Error: Process Failed.
    at install (/node_modules/@azure-tools/extension/dist/main.js:367:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async ExtensionManager.installPackage (/node_modules/@azure-tools/extension/dist/main.js:571:13)

Expected behavior Successful update to the version specified

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MikhailTryakhovcommented, Jan 11, 2021

That helped! Thanks a lot!

0reactions
timotheeguerincommented, Jan 8, 2021

@MikhailTryakhov have you tried running autorest --reset? If that doesnt work could you try running npm install @microsoft.azure_autorest-core@2.0.4413 somewhere and see if the package succeed in installing on your machine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@autorest/core - npm
Start using @autorest/core in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Note: AutoRest core version selected from configuration
I have installed autorest 3.0.3187 on node ...
Read more >
AutoRest Versioning
The CLI can load any version of the AutoRest Core module by using the command line --version:[VERSION] where [VERSION] is one of: a...
Read more >
AutoRest - npm.io
AutoRest. The AutoRest tool generates client libraries for accessing RESTful web services. Input to AutoRest is a spec that describes the REST API...
Read more >
cannot read properties of undefined (reading 'has') - You.com
undefined, so you can't get a has property in undefined, you can check the ... https://github.com/Azure/autorest/blob/main/packages/extensions/core/src/lib/ ...
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