Read the statement by Michael Teeuw here.
(solved) MM 2.18 - skipping optional Dependencys
-
Hi,
after a regular Update MM2.17 -> 2.18 ich recieved the Warning:
MagicMirror installation finished successfully! > magicmirror@2.18.0 prepare /home/pi/MagicMirror > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed. husky - Git hooks installed npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.3.2 (node_modules/jest-haste-map/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
Somehow- what do i have to perform to install this dependency…?
npm install typescript npm install tsutils
Both have been sucessful.
This is hindering me to update NPM to Version 8.x.
pi@MagicMirror:~/MagicMirror $ npm install fsevents npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm ERR! notsup Valid OS: darwin npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: linux npm ERR! notsup Actual Arch: arm npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-01-13T11_54_19_577Z-debug.log pi@MagicMirror:~/MagicMirror $
-
Ich have found the answer by meyself.
npm install --no-optional npm install typescript npm install tsutils
-
@oberfragger I don’t understand.
these optional libs are platform dependent.
as such the fsevents uses macos only functions and CANNOT run on Linux/pi…
that is why they are OPTIONAL
no error if not installed.
-
@sdetweil Youre right,
but my inner monk says… warnings are no good. Please fix it ;) -
@oberfragger we cannot fix it… not our code and no overide of messages is available
same as Audit
-
@sdetweil No. This fix it was not meant by you- it was for me… “but my inner monk says (to myself)… warnings are no good. Please fix it 😉”