When trying to install a plugin/theme with '-P / --path' it fails and gives me an error

Hello everyone, when I try to test a theme that is locally in my system I get an error but when I install it via npm it somehow works? could anyone help?

root@connect ~/PeerTube # node dist/server/tools/peertube-plugins.js install --url https://tube.vvv.cash --username root --password 'noneofyourbuisnesss' -P /root/peertube-theme-bittube-dark-mode/
Cannot install plugin. Error: expected 200 "OK", got 400 "Bad Request"
    at Object.makePostBodyRequest (/root/PeerTube/dist/shared/extra-utils/requests/requests.js:98:10)
    at Object.installPlugin (/root/PeerTube/dist/shared/extra-utils/server/plugins.js:120:23)
    at /root/PeerTube/dist/server/tools/peertube-plugins.js:105:29
    at Generator.next (<anonymous>)
    at fulfilled (/root/PeerTube/node_modules/tslib/tslib.js:114:62)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
----
    at Test._assertStatus (/root/PeerTube/node_modules/supertest/lib/test.js:296:12)
    at /root/PeerTube/node_modules/supertest/lib/test.js:80:15
    at Test._assertFunction (/root/PeerTube/node_modules/supertest/lib/test.js:311:11)
    at Test.assert (/root/PeerTube/node_modules/supertest/lib/test.js:201:21)
    at localAssert (/root/PeerTube/node_modules/supertest/lib/test.js:159:12)
    at /root/PeerTube/node_modules/supertest/lib/test.js:156:5
    at Test.Request.callback (/root/PeerTube/node_modules/superagent/lib/node/index.js:905:3)
    at IncomingMessage.<anonymous> (/root/PeerTube/node_modules/superagent/lib/node/index.js:1127:20)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1241:12)

but if I run

root@connect ~/PeerTube # node dist/server/tools/peertube-plugins.js install --url https://tube.vvv.cash --username root --password 'none of your buisness' -n peertube-theme-bittube-dark-mode
Plugin installed.

it runs??? any help.

Hello,

Don’t use /root directory. PeerTube cannot access it.