Skip to content

Error output with nvm on ulysse -d #2

@ronniery

Description

@ronniery

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions