akaJes / marlin-config

Marlin firmware instant configurator
GNU General Public License v3.0
389 stars 85 forks source link

[long term feature request] I had a dream #69

Open yet-another-average-joe opened 6 years ago

yet-another-average-joe commented 6 years ago

Hello akaJes !

I had a dream, but I failed to make it real...

marlin-conf could be the killer app if it worked out of the box on an OctoPi print server.

I imagine a package for OctoPi, easy to install with just an "apt-get install marlin-conf", and running it as a service, and such a workflow :

Not being a Linux guru (by far !!!), I failed. An epic fail ! (I first failed at installing marlin-conf, because of dependencies I couldn't resolve)

IMHO, marlin-conf on a RasPi could make it even better. 100% independent from a desktop computer. The printer with a RasPi could be auto upgradable, even if the printer manufacturer does not maintain the firmware.

(sorry for my bad english)

akaJes commented 6 years ago

it can be installed with npm -g i marlin-conf and run as service with mct conf #11

ScruffR commented 4 years ago

Sorry for resurrecting this old issue, but I cannot. For some reason the install always fails with something like this

pi@octopi:/root/.npm/_cacache/tmp $ sudo npm -g i marlin-conf
npm WARN deprecated rtcmulticonnection-v3@3.4.5: Please use `rtcmulticonnection` instead. i.e. do NOT include `-v3`.
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/original-1a4910bc/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/har-validator-700ff102/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/uri-js-b80677a9/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-4f0f9a5f/package.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/original-1a4910bc/index.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/har-validator-700ff102/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/uri-js-b80677a9/bower.json'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-4f0f9a5f/.tonic_example.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/original-1a4910bc/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/har-validator-700ff102/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/uri-js-b80677a9/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-4f0f9a5f/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/original-1a4910bc/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-4f0f9a5f/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/url-parse-e0b2b45f/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/url-parse-e0b2b45f/README.md'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/sockjs-client-c86bdff1/dist/sockjs.js.map'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/socket.io-client-e85870ce/dist/socket.io.slim.dev.js.map'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/font-awesome-64e5ea73/fonts/fontawesome-webfont.woff'
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/node-notifier-29fd484b/vendor/mac.noindex/terminal-notifier.app/Contents/Resources'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/handlebars-7f3b16c0/dist/amd/handlebars/compiler/printer.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/handlebars-7f3b16c0/dist/amd/handlebars/compiler/visitor.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/handlebars-7f3b16c0/dist/amd/handlebars/compiler/whitespace-control.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/handlebars-7f3b16c0/dist/amd/handlebars/decorators.js'
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/node-notifier-29fd484b/vendor/mac.noindex'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/node-notifier-29fd484b/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist'
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/node-notifier-29fd484b/vendor/mac.noindex'
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/node-notifier-29fd484b/vendor/mac.noindex'
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/vex-js-a51109ac/docs/welcome'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/moment-08b2c421/min/moment-with-locales.min.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ace-builds-8fedac08/src-noconflict/mode-lucene.js'
npm WARN notsup Unsupported engine for rtcmulticonnection-v3@3.4.5: wanted: {"node":"latest"} (current: {"node":"13.5.0","npm":"6.13.4"})
npm WARN notsup Not compatible with your version of node/npm: rtcmulticonnection-v3@3.4.5

npm ERR! code 1
npm ERR! Command failed: git clone --mirror -q https://github.com/MelvinTo/node-nat-upnp.git /root/.npm/_cacache/tmp/git-clone-9b9c28f0/.git
npm ERR!
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ace-builds-8fedac08/src-noconflict/mode-makefile.js'
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ace-builds-8fedac08/src-noconflict/mode-markdown.js'

My installed versions are

OS Raspbian GNU/Linux 10 (buster)
node 13.5.0 (currently latest)
npm 6.13.4 (currently latest)

Is there a known-to-be-working set of versions I could try? I already tried node 8.9.3 as stated with the latest release but no dice.


Update: I now tried

 npm -g install marlin-conf --allow-root --unsafe-perm 

and that worked for installation. However, then I got this

(node:11547) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 3
(node:11547) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
ScruffR commented 2 years ago

Now one and a half years later with a fresh install, my previous solution is not working anymore See #119