Closed lenkan closed 5 years ago
https://github.com/Azure/azure-sdk-for-js/commit/98c4b34884a44d3f8f8b07c86feb783b1d64676f
This seems to be the issue (?)
Same here, cannot install the module.
> @azure/amqp-common@1.0.0-preview.4 preinstall c:\Git_work\alien-vault\allegro-methodus\modules\@allegro\service-bus\node_modules\@azure\amqp-common
> node ../../../common/scripts/rush-welcome.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'c:\Git_work\alien-vault\allegro-methodus\modules\@allegro\service-bus\common\scripts\rush-welcome.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:279:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
Same problem for me:
> @azure/amqp-common@1.0.0-preview.4 preinstall /Users/dipa/Desktop/infinitas/service-liber-api/node_modules/@azure/amqp-common
> node ../../../common/scripts/rush-welcome.js
module.js:549
throw err;
^
Error: Cannot find module '/Users/dipa/Desktop/infinitas/service-liber-api/common/scripts/rush-welcome.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
We do have the same problem with the latest version although it fails with a different error message
error C:\Development\GraphQL\node_modules\@azure\service-bus\node_modules\@azure\amqp-common: Command failed.
We think its related to the recent @azure/amqp-common_1.0.0-preview.4 version bump which is a dependency of l @azure/service-bus
I worked around the issue for now by doing
npm i --save @azure/amqp-common@1.0.0-preview.3
before running
npm i --save @azure/service-bus@1.0.0-preview.3
Apologies, this slipped through our review for the preview. We've got the fix merged and will be cutting a preview.5 release shortly.
Describe the bug When installing @azure/service-bus, it fails with error due to failing
preinstall
script. See attached error message.To Reproduce Steps to reproduce the behavior:
npm install @azure/service-bus
Expected behavior Package is downloaded without error.
Screenshots