Skip to content

installation fails with default nodejs package path #569

Closed

Description

@xavgru12

Description

Installation fails with default nodejs package path.
It works fine after setting up a custom path in $HOME:
Create a directory for global installations:

Bash
mkdir ~/.npm-global
Configure npm to use the new directory path:

Bash
npm config set prefix '~/.npm-global'
Open (or create) your ~/.profile or ~/.bashrc file:

Bash
nano ~/.bashrc
Add this line to the very end of the file:

Bash
export PATH=~/.npm-global/bin:$PATH
Update your current terminal session:

Bash
source ~/.bashrc

Reproduction Steps

Delete nemoclaw installation
Run installer

Environment

Ubuntu 24.04
Default node package path

Debug Output

Logs

npm error code EACCES
npm error syscall symlink
npm error path ../../../home/xaver/.nemoclaw/source
npm error dest /usr/lib/node_modules/nemoclaw
npm error errno -13
npm error Error: EACCES: permission denied, symlink '../../../home/xaver/.nemoclaw/source' -> '/usr/lib/node_modules/nemoclaw'
npm error     at async symlink (node:internal/fs/promises:999:10)
npm error     at async /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:646:7
npm error     at async Promise.allSettled (index 0)
npm error     at async #reifyPackages (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:309:11)
npm error     at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:121:5)
npm error     at async Link.linkPkg (/usr/lib/node_modules/npm/lib/commands/link.js:148:5)
npm error     at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:208:9)
npm error     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:67:5) {
npm error   errno: -13,
npm error   code: 'EACCES',
npm error   syscall: 'symlink',
npm error   path: '../../../home/xaver/.nemoclaw/source',
npm error   dest: '/usr/lib/node_modules/nemoclaw'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /home/xaver/.npm/_logs/2026-03-21T08_33_32_106Z-debug-0.log

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. self-assigned this
    on Apr 1, 2026
  2. added
    platform: ubuntu
    and removed on Apr 1, 2026
  3. wscurran commented on Apr 1, 2026

    @wscurran
    Contributor

    ✨ Thanks for reporting this installation issue, which identifies a problem with the default nodejs package path. It looks like setting up a custom path in $HOME resolves the issue. Could you try to reproduce this with the default path and share more about your environment?


    Possibly related open PRs:

  4. xavgru12 commented on Apr 1, 2026

    @xavgru12
    Author

    @wscurran
    Hi, using a custom npm global dir resolves it.
    I am on Ubuntu 24.04

  5. ericksoa commented on Apr 5, 2026

    @ericksoa
    Member

    Fixed by #821 — the installer now auto-detects a non-writable npm global prefix on Linux and redirects to ~/.npm-global (the same workaround you described). Please reopen if reproducible on the current installer.

  6. added
    area: install
    area: onboarding
    and removed on Jun 3, 2026
  7. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: installarea: onboardingplatform: ubuntu

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions