ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

coffee-script modul wurde nicht gefunden

Open Revilo91 opened this issue 2 years ago • 16 comments

Hallo,

leider geht in der aktuellsten Version (5.8.10) gar nichts mehr:

image

Revilo91 avatar Jul 15 '22 19:07 Revilo91

Habe die gleichen Fehler . Bin zurück auf 5.8.7 läuft erstmal wieder.

Knallix avatar Jul 15 '22 21:07 Knallix

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

Grothesk242 avatar Jul 16 '22 19:07 Grothesk242

With npm 6 and node 14 no problem on my system: image

Diginix avatar Jul 16 '22 19:07 Diginix

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.

image

CommanderXXL avatar Jul 16 '22 20:07 CommanderXXL

Kann ebenfalls selben Fehler sowie ein Funktionieren nach Downgrade auf 5.8.7 bestätigen. Danke für den Tipp.

tmycgn avatar Jul 17 '22 07:07 tmycgn

Vielleicht könnten die 'Hier geht nix'-Melder mal ihren npm tree bekannt machen. Ich vermute ja, da liegt einiges in der ersten Ebene.

Grothesk242 avatar Jul 17 '22 08:07 Grothesk242

Das wäre dann dieser hier: image

CommanderXXL avatar Jul 17 '22 08:07 CommanderXXL

Und mit der 5.8.10 schaut das wie aus? Denn bei diginix funktioniert es ja.

Node und NPM sind in welchen Versionen?

Grothesk242 avatar Jul 17 '22 09:07 Grothesk242

image 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.

CommanderXXL avatar Jul 17 '22 09:07 CommanderXXL

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#

Anzic23 avatar Jul 17 '22 09:07 Anzic23

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???

j1s2e3 avatar Jul 17 '22 09:07 j1s2e3

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.

Grothesk242 avatar Jul 17 '22 09:07 Grothesk242

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.

klein0r avatar Jul 17 '22 14:07 klein0r

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.

Revilo91 avatar Jul 17 '22 17:07 Revilo91

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.

xdaamg avatar Jul 17 '22 18:07 xdaamg

That's excactly what I was expecting. Running the recommended node/npm versions is the key.

Grothesk242 avatar Jul 17 '22 18:07 Grothesk242

Can we close it?

GermanBluefox avatar Aug 19 '22 09:08 GermanBluefox

I would say yes ... with 6.0 it is gone in peace

Apollon77 avatar Aug 19 '22 10:08 Apollon77