Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error output with nvm on ulysse -d #2

Open
ronniery opened this issue Dec 10, 2024 · 0 comments
Open

Error output with nvm on ulysse -d #2

ronniery opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@ronniery
Copy link

ronniery commented Dec 10, 2024

I have in my system nvm installed:

➜  nvm -v         
0.40.1

Which is defining the following node version:

➜  nvm ls
       v14.19.0
       v14.21.3
       v16.20.2
       v18.20.4
->     v20.18.0
        v21.7.3
        v22.0.0
        v22.1.0
        v22.4.0
        v22.6.0
        v22.9.0
       v22.10.0
        v23.0.0
         system
default -> 14 (-> v14.21.3)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v23.0.0) (default)
stable -> 23.0 (-> v23.0.0) (default)
lts/* -> lts/iron (-> v20.18.0)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3
lts/gallium -> v16.20.2
lts/hydrogen -> v18.20.4
lts/iron -> v20.18.0

After installing the package locally:

➜  npm i -g ulysse

I faced another problem, it was expecting to run the daemon, then I ran it with sudo:

➜  sudo /.../.nvm/.../bin/ulysse -d
/usr/bin/env: ‘node’: No such file or directory

To make it work I've created a symlink:

➜ sudo ln -s $(which node) /usr/bin/node

Then running the command again:

➜  sudo /.../.nvm/.../ulysse -d
Starting daemon...
chattr: Operation not supported while reading flags on /etc/resolv.conf
child_process.js:866
    throw err;
    ^

Error: Command failed: chattr -i /etc/resolv.conf
chattr: Operation not supported while reading flags on /etc/resolv.conf

    at checkExecSyncError (child_process.js:790:11)
    at Object.execSync (child_process.js:863:15)
    at en (/home/ifd-lpt-100/.nvm/versions/node/v14.21.3/lib/node_modules/ulysse/dist/index.js:4:133927)
    at rn (/home/ifd-lpt-100/.nvm/versions/node/v14.21.3/lib/node_modules/ulysse/dist/index.js:4:134823)
    at Object.--daemon (/home/ifd-lpt-100/.nvm/versions/node/v14.21.3/lib/node_modules/ulysse/dist/index.js:4:137336)
    at /home/ifd-lpt-100/.nvm/versions/node/v14.21.3/lib/node_modules/ulysse/dist/index.js:4:139187
    at Object.<anonymous> (/home/ifd-lpt-100/.nvm/versions/node/v14.21.3/lib/node_modules/ulysse/dist/index.js:4:139245)
    at Module._compile (internal/modules/cjs/loader.js:1114:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:979:32) {

Operating system info:

➜ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
➜  ~ uname -r
6.8.0-49-generic
➜  ~ uname -a
Linux ... 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov  4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
@johackim johackim self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants