[SOLVED] Try to install aurelia-cli but get some issue

hello,

when i try to install aurelia cli (with this tutorila https://aurelia.io/docs/build-systems/aurelia-cli/)

i recieve this error on npm:

C:>au
internal/modules/cjs/loader.js:596
throw err;
^

Error: Cannot find module ‘aurelia-dependency-injection’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\WebDev\AppData\Roaming\npm\node_modules\aurelia-cli\lib\cli.js:3:19)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)

What i do wrong?

thank you…

1 Like

I have the same issue since only recently.

I discovered that aurelia-dependency-injection module has been updated to version 1.4.0 and it causes this issue. My temporarily fix is to uninstall this version and manually install the previous one:

npm uninstall aurelia-dependency-injection
npm install aurelia-dependency-injection@1.3.2

Hope this can be fixed with a further update of aurelia-dependency-injection

1 Like

Something went wrong with the publication process for the dependency injection library when we pushed out 1.4.0. We’re not sure exactly how it happened, but the dist folder containing all the built code assets ended up in the wrong location. We’ve just published 1.4.1, which should address this issue. Please try again. Apologies for the inconvenience.

3 Likes

Will try it soon :smiley: thank you very much :smiley: