Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine

前端 未结 6 799
不知归路
不知归路 2020-12-31 03:44

I\'m new to Play framework. Please explain the meaning of the below warning.

Warning: node.js detection failed, sbt will use the Rhino based Trireme J

6条回答
  •  暖寄归人
    2020-12-31 04:41

    in Windows 10:

    Install node.js from https://nodejs.org/en/ (The installer automatically adds node.js to your PATH)

    then add:

    export SBT_OPTS="$SBT_OPTS -Dsbt.jse.engineType=Node"
    

    to your plugins.sbt in

    . ./project/plugins.sbt
    

    Worked for me - the warning has disappeared!

    EDIT: Apparently plugins.sbt was the wrong place to add the

    export SBT_OPTS="$SBT_OPTS -Dsbt.jse.engineType=Node"
    

    ...although the warning disappeared when loading my app, it led to an error when relaunching the app a couple of hours later:

    error: not found: value export

    I would be glad if anyone could help and tell me where to put the export.

提交回复
热议问题