Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Cloudron Forum

Apps | Demo | Docs | Install

NPM not found in user www-data

Scheduled Pinned Locked Moved Solved Support
4 Posts 3 Posters 41 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AniTexs
    wrote on last edited by
    #1

    I get this when I try to use npm install

    root@29f604ef-685e-49ef-a3ae-365eb716ca96:/app/data# su - www-data
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ cd frontend/
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~/frontend$ npm install
    -bash: npm: command not found

    1 Reply Last reply
    1
  • A Offline
    A Offline
    AniTexs
    wrote on last edited by
    #2

    Also tried this:

    root@29f604ef-685e-49ef-a3ae-365eb716ca96:/app/code# which npm
    /usr/local/node-18.12.1/bin/npm
    root@29f604ef-685e-49ef-a3ae-365eb716ca96:/app/code# su - www-data
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm help
    /usr/bin/env: ‘node’: No such file or directory
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm help
    npm
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm help
    npm
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm help
    /usr/bin/env: ‘node’: No such file or directory
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm help install
    /usr/bin/env: ‘node’: No such file or directory
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ /usr/local/node-18.12.1/bin/npm npm help install
    /usr/bin/env: ‘node’: No such file or directory
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ node
    -bash: node: command not found
    www-data@29f604ef-685e-49ef-a3ae-365eb716ca96:~$ 
    
    1 Reply Last reply
    0
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #3

    You don't mention what you're doing or where.. what app is this for?

    If nothing else try this: https://forum.cloudron.io/topic/9399/how-to-run-ai-models-in-lamp-app

    Life of sky tech

    1 Reply Last reply
    1
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #4

    As @robi said, need more context here. What are you trying to do? Which app is this?

    1 Reply Last reply
    0
  • girishG girish marked this topic as a question on
  • girishG girish has marked this topic as solved on

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.