KristjanESPERANTO / MMM-PublicTransportHafas

This is a module for MagicMirror² to display public transport departures.
MIT License
17 stars 6 forks source link

Error on installation #136

Closed Specks8553 closed 1 year ago

Specks8553 commented 1 year ago

On installtion i get the following error after running

npm install --omit=dev

mmm-publictransporthafas@2.0.1 prepare husky install

sh: 1: husky: not found npm ERR! code 127 2023-02-18T12_09_29_373Z-debug-0.log

npm ERR! path /home/adrian/MagicMirror/modules/MMM-PublicTransportHafas npm ERR! command failed npm ERR! command sh -c -- husky install

npm ERR! A complete log of this run can be found in: npm ERR!     /home/adrian/.npm/_logs/2023-02-18T12_09_29_373Z-debug-0.log

I attached the log file

KristjanESPERANTO commented 1 year ago

Your npm is version 8.x, this is a legacy branch. Please upgrade to version 9.x and try again.

sudo npm install npm@latest -g should do the upgrade.

Specks8553 commented 1 year ago

Many thanks for the quick reply. The Problem persists after updating npm to v9.5.0. I added the new log. 2023-02-18T14_23_37_832Z-debug-0.log

KristjanESPERANTO commented 1 year ago

Does it make a difference if you run npm install instead of npm install --omit=dev?

Specks8553 commented 1 year ago

This fixed it

KristjanESPERANTO commented 1 year ago

Nice :slightly_smiling_face: I've made an adjustment so others don't stumble across the same problem. Have fun with your mirror!