question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing on Ubuntu 17, ran into an error

See original GitHub issue

Pretty new to linux, so I’m sure the error is on my side. Was looking to use Cloud Commander as a file browser.

I followed the instructions, installed node.js and also ran

sudo ln -s /usr/bin/nodejs /usr/bin/node

to fix this error

/usr/bin/env: ‘node’: No such file or directory

but then I ran into this

$ sudo cloudcmd
/usr/local/lib/node_modules/cloudcmd/node_modules/readify/lib/readify.js:19
const good = (f) => (...a) => f(null, ...a);
                     ^^^

SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/cloudcmd/node_modules/flop/lib/flop.js:13:17)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
UmamaheshwarNcommented, Feb 12, 2021

If you are trying to do this in 2021 and having issues, try to locate your cloudcmd install folder and use that in ExecStart path-of-cloudcmd/bin/cloudcmd.js

Also, I had to change cloudcmd.js to cloudcmd.mjs This worked for me:

[Unit]
Description=Cloud Commander
After=network.target

[Service]
Restart=always
User=myusername
ExecStart=/home/myusername/.nvm/versions/node/v15.5.1/bin/node /home/myusername/.nvm/versions/node/v15.5.1/lib/node_modules/cloudcmd/bin/cloudcmd.mjs
WorkingDirectory=/home/myusername/.nvm/versions/node/v15.5.1/lib/node_modules/cloudcmd/

[Install]
WantedBy=multi-user.target
0reactions
coderaisercommented, Jul 20, 2017

You should get path of cloudcmd with:

which cloudcmd

and set to cloudcmd.service in ExecStart:

[Unit]
Description=Cloud Commander

[Service]
TimeoutStartSec=0
Restart=always
User=me

WorkingDirectory=/home/me

ExecStart=/usr/bin/nodejs path-of-cloudcmd/bin/cloudcmd.js

[Install]
WantedBy=multi-user.target
Read more comments on GitHub >

github_iconTop Results From Across the Web

After installing root 6.12 on ubuntu 17, received an error ...
Hi, I'm just starting research with root and I ran into this error when I tried running root: cling::DynamicLibraryManager::loadLibrary(): ...
Read more >
failed to install grub, ubuntu 17.04 installation [duplicate]
1 Answer 1 ... Probably your system hasn't been configured to boot UEFI files while your installation medium is UEFI enabled. That's why...
Read more >
Need help installing windows over ubuntu (17.10) - Super User
1 Goto BIOS and enable USB booting. 2 At boot menu give first priority to USb device. OR. select USB device at startup...
Read more >
How to fix this error in Ubuntu 17.04 'E: Unable to fetch some ...
First you run ”sudo apt-get update”. This update all your repositories for all your apps to all the latest updates lists. Then run...
Read more >
Troubleshooting - Ubuntu
Ubuntu Core install error: TPM is in DA Lockout Mode · Console-conf shows no-ip-address but device is accessible over SSH · Ubuntu Core...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found