ioBroker.javascript
ioBroker.javascript copied to clipboard
coffee-script modul wurde nicht gefunden
Hallo,
leider geht in der aktuellsten Version (5.8.10) gar nichts mehr:
Habe die gleichen Fehler . Bin zurück auf 5.8.7 läuft erstmal wieder.
Kann ich nicht bestätigen, hier rennt alles wie immer.
echad@chet:/opt/iobroker $ npm ls coffee-script coffeescript
[email protected] /opt/iobroker
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected] deduped
├── [email protected]
└── [email protected]
echad@chet:~ $ node -v && npm -v
v18.6.0
8.13.2
With npm 6 and node 14 no problem on my system:
Ich schliesse mich mal den "läuft NICHT" reports an. Auch 5.8.9 ging bei mir nicht. Ich bin ebenfalls auf 5.8.7 zurück wie @Knallix und damit startet er wieder. Node is 14.20.
Kann ebenfalls selben Fehler sowie ein Funktionieren nach Downgrade auf 5.8.7 bestätigen. Danke für den Tipp.
Vielleicht könnten die 'Hier geht nix'-Melder mal ihren npm tree bekannt machen. Ich vermute ja, da liegt einiges in der ersten Ebene.
Das wäre dann dieser hier:
Und mit der 5.8.10 schaut das wie aus? Denn bei diginix funktioniert es ja.
Node und NPM sind in welchen Versionen?
Den Tree mit 5.8.10 kann ich erst heute Abend schicken da ich jetzt dringend aus dem Haus muss und das Update nicht mehr vorher schaffe. Sorry. Vielleicht kann es ja einer der anderen Reporter vorher machen.
5.8.10 Error: Cannot find module 'coffee-script'
root@iobroker:/opt/iobroker# npm ls coffee-script coffeescript
[email protected] /opt/iobroker
└─┬ [email protected]
├── UNMET PEER DEPENDENCY [email protected]
└── [email protected]
npm ERR! peer dep missing: coffee-script@>=1.6.2, required by [email protected]
root@iobroker:/opt/iobroker# node -v && npm -v
v14.19.3
6.14.17
root@iobroker:/opt/iobroker#
this helped me - npm install coffee-script coffeescript
root@iobroker:/opt/iobroker# npm install coffee-script coffeescript
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN [email protected] requires a peer of buffer@>=6.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of tough-cookie@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
+ [email protected]
added 2 packages from 1 contributor, removed 13 packages and updated 1 package in 42.866s
162 packages are looking for funding
run `npm fund` for details
root@iobroker:/opt/iobroker# npm ls coffee-script coffeescript
[email protected] /opt/iobroker
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
└── [email protected]
root@iobroker:/opt/iobroker#
I have the same problem here.
I guess this is the problem: npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
iobroker.javascript depends on coffee-script, but the one with hyphen is deprecated. coffeescript without hyphen should be used, which in turn is already installed. So why iobroker.javascript depends on both, coffeescript and coffee-script???
I'm sure you guys would face fewer problems if you would use the recommended nodejs16 / npm8 combination. npm>7 does manage peer deps.
So why iobroker.javascript depends on both, coffeescript and coffee-script???
It's a transgression.
So why iobroker.javascript depends on both, coffeescript and coffee-script???
Because the coffee-compiler still uses coffee-script
. We should get rid of that dependency.
Vielleicht könnten die 'Hier geht nix'-Melder mal ihren npm tree bekannt machen. Ich vermute ja, da liegt einiges in der ersten Ebene.
Hallo, sorry für die späte Rückmeldung.
Hab manuell das coffee-script
installiert, danach ging es auch wieder.
EN:
Hello, sorry for the late reply.
Installed the coffee-script
manually, after that it worked again.
Had same problem here with not working js-controller and errors about coffee-script/coffeescript with javascript-adapter. Downgrade to javascript-adapter 5.8.7 solved it at first. Then i updated again to javascript-adapter 5.8.10 and upgraded nodejs from 14 to 16 and npm from 6 to 8. Javascipt-controller 4.0.23 and javascript-adapter 5.8.10 are working without problems now. No need to change/install coffeescript here.
That's excactly what I was expecting. Running the recommended node/npm versions is the key.
Can we close it?
I would say yes ... with 6.0 it is gone in peace