Update installation error


Topic: Update installation error

mdb2 pro asked 6 years ago

Hi. Everytime I update (using npm i) I'm starting to get messages like: ./node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss) Module build failed: Error: ENOENT: no such file or directory, open 'C:\...\node_modules\ng-uikit-pro-standard\assets\scss\bootstrap\bootstrap.scss'   Then I start playing with ng build and npm I again hoping that it will start to work Deleting ng-uikit-pro-standard folder and npm I, ng build doesn't help Deleting entire node_modules folder, npm I, ng build works   Why ?

Damian Gemza staff answered 6 years ago

Dear mdb2, Does this problem exist only when you're updating MDB to the latest version, or every time when you hit npm i command? Could you try to remove package-lock.json file, remove node_modules directory and check one more time? Best Regards, Damian

mdb2 pro answered 6 years ago

Hi, I npm i and ng build and it works I removed package-lock.json, node_modules and npm i and it also works Only when I update it fails

Damian Gemza staff answered 6 years ago

Dear mdb2, Could you please provide me a detailed instruction, how can I reproduce your problem? I think, that your problem is not related to MDB but to NPM. Please check those links: LINK1, LINK2, LINK3, LINK4 Best Regards, Damian

mdb2 pro answered 6 years ago

Hi Damian, It might be related so I'll try again with the next update, yet the error refers to missing component from MDB and not other unrelated dependencies in 'C:\...\node_modules\ng-uikit-pro-standard\assets\scss\bootstrap\bootstrap.scss I'll try you updated with the next update

Damian Gemza staff answered 6 years ago

Dear mdb2, This error says that there are no bootstrap.scss in 'C:\...\node_modules\ng-uikit-pro-standard\assets\scss\bootstrap\ path. And this error could be true because if npm install removes ng-uikit-pro-standard dependency from your application, there won't be a bootstrap.scss file. Or, if this problem is thrown only for bootstrap.scss file, could you please try to install Bootstrap as a standalone dependency by executing npm install bootstrap --save, and in angular.json pointing path to that file? Best Regards, Damian

mdb2 pro answered 6 years ago

it appears to happen whenever I install a new package. npm install bootstrap --save and replacing
"node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss",
with
"node_modules/bootstrap/scss/bootstrap.scss"
in "styles" in angular.json doesn't help
npm i (several times) doesn't help also
PS: ng-build does work
removing node_modules, npm i, ng serve works

Damian Gemza staff answered 6 years ago

Dear mdb2, Could you please try if this problem occurs with some your other projects? As I said before, I don't think that this problem came from our library. Best Regards, Damian
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: NA
  • Browser: NA
  • OS: NA
  • Provided sample code: No
  • Provided link: No
Tags