Topic: Installation failure

JeroenVunderink premium asked 4 years ago


Expected behavior No Errors

Actual behavior Errors during install

Resources (screenshots, code snippets etc.) air-van-jeroen:ng-uikit-pro-standard Jeroen$ sudo npm install Password:

fsevents@1.2.12 install /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/watchpack/node_modules/fsevents node-gyp rebuild

internal/modules/cjs/loader.js:985 throw err; ^

Error: Cannot find module 'nan' Require stack: - /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/watchpack/node_modules/fsevents/[eval] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) at Function.Module._load (internal/modules/cjs/loader.js:864:27) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at [eval]:1:1 at Script.runInThisContext (vm.js:120:20) at Object.runInThisContext (vm.js:311:38) at Object. ([eval]-wrapper:10:26) at Module._compile (internal/modules/cjs/loader.js:1158:30) at evalScript (internal/process/execution.js:94:25) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/watchpack/node_modules/fsevents/[eval]' ] } gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:311:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Darwin 19.4.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/watchpack/node_modules/fsevents gyp ERR! node -v v12.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok

fsevents@1.2.12 install /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/webpack-dev-server/node_modules/fsevents node-gyp rebuild

internal/modules/cjs/loader.js:985 throw err; ^

Error: Cannot find module 'nan' Require stack: - /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/webpack-dev-server/node_modules/fsevents/[eval] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15) at Function.Module._load (internal/modules/cjs/loader.js:864:27) at Module.require (internal/modules/cjs/loader.js:1044:19) at require (internal/modules/cjs/helpers.js:77:18) at [eval]:1:1 at Script.runInThisContext (vm.js:120:20) at Object.runInThisContext (vm.js:311:38) at Object. ([eval]-wrapper:10:26) at Module._compile (internal/modules/cjs/loader.js:1158:30) at evalScript (internal/process/execution.js:94:25) { code: 'MODULE_NOT_FOUND', requireStack: [ '/Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/webpack-dev-server/node_modules/fsevents/[eval]' ] } gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:311:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Darwin 19.4.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Jeroen/Documents/My Development Assets/mdb-angular-super-bundle-9.0.1/ng-uikit-pro-standard/node_modules/webpack-dev-server/node_modules/fsevents gyp ERR! node -v v12.16.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN @agm/core@1.1.0 requires a peer of @angular/common@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @agm/core@1.1.0 requires a peer of @angular/core@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself. npm WARN karma-jasmine-html-reporter@1.5.2 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/watchpack/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/webpack-dev-server/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

removed 1 package, updated 2 packages and audited 14612 packages in 11.766s

44 packages are looking for funding run npm fund for details

found 2 low severity vulnerabilities run npm audit fix to fix them, or npm audit for details air-van-jeroen:ng-uikit-pro-standard Jeroen$


Arkadiusz Idzikowski staff commented 4 years ago

Please try to remove your node_modules folder and package-lock.json file and run npm install command again.


JeroenVunderink premium commented 4 years ago

Thanks for the answer, but I got 530 folders called node_modules, can you be a little more specific? Also have 25 package-lock.json files...


JeroenVunderink premium commented 4 years ago

And sorry guys, maybe I'm stupid but I have a working project and want to add your stuff. I have seen and tried several ways as published at the website and non of them work.

This doesn't work, I have submitted the errors above: https://youtu.be/J3M0QS6YB0w

I have download the code and that installation doesn't work and sorry whatever you mention in the getting started also doesn't have (all) the correct detailed steps. Please help out.


Arkadiusz Idzikowski staff commented 4 years ago

You should have one node_modules folder and package-lock.json file per one project. I meant the node_modules and package-lock.json in the project in which you use MDB Angular library. You can look for 'ng-uikit-pro-standard' occurences to make sure that you delete correct files.


JeroenVunderink premium commented 4 years ago

Thanks, I will try that. 1) So I will "delete" the file and the directory. 2) What do you suggest as the install command? Do I use the zipfile? And how? Or do you have better suggestions?


Arkadiusz Idzikowski staff commented 4 years ago

I assume that you use 'ng-uikit-pro-standard' zip from our super bundle pack. This is ready to use Angular project with MDB Angular library installed and configured. After removing the node_modules and package-lock, you should just use npm install command to reinstall project dependencies (you should navigate to the 'ng-uikit-pro-standard' root folder first).


JeroenVunderink premium commented 4 years ago

Thanks. It works not and I and building my site.

Just a remark: The installation guidance should be up to date and after the npm install I still get warning that lead to errors when I try to fix them. So I used the zipfiles, deleted the nodes_modules directory and the package-lock.json file. Ran the npm install and it works. Still I don't like the warnings but so be it. At least I can start now.

Thanks!



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

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 9.0.1
  • Device: MacBook
  • Browser: Chrome
  • OS: macOS Catalina 10.15.4
  • Provided sample code: Yes
  • Provided link: No