Unable to find a valid AutoRest core package '@autorest/core'
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >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
That helped! Thanks a lot!
@MikhailTryakhov have you tried running
autorest --reset
? If that doesnt work could you try runningnpm install @microsoft.azure_autorest-core@2.0.4413
somewhere and see if the package succeed in installing on your machine.