Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

NPM settings: "Make sure that the main script will be executed with the "src/" prefix"...

As an Amazon Associate, we may earn commissions from qualifying purchases. Learn more...

2
0
NAS
DS920+
Operating system
  1. Windows
I'm tryingt to create a dockerised NPM container, but everything I try results in an error

Cannot find module '/home/node/index.js'

I've put index.js in the root folder, in an src folder, both folders, all sorts.

Can anyone explain to me what Synology means by the top part?

1738543364473.webp


If anyone could let me know what settings I am entering incorrectly it would be greatly appreciated!
 
Last edited:
Try to install with this tut: (removed by admin)

Okay....then search the Marius Hosting site for NPM.......
Maybe your issue will be solved then.
 
Okay....then search the xxxx site for NPM...

Worst advise ever. Instead, follow the compose instructions from the NPM developer and use as Container "project"
 
Last edited:
Sure @Telos Sigh:rolleyes:

And then the xxxx ? (Okay....then search the xxxx site for NPM...)
Search this Forum about Marius, I'm not the only one so, it's not forbidden..............
I only made a mistake to give the URL

2025-02-03_16-40-29.webp

And start over with installing in the Marius way, why not so, why Worst advise ever !
 
I had unexplained and ever unsolved issues when tried to install NPM with various guides out there...
Only working way was to follow setup instructions from the developer to install NPM with use of MariaDB. Deployed with portainer (that's what I use for docker deployment) and worked right away after changing ports accordingly.

My docker compose (minor changes for ports) is as follows:

YAML:
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    container_name: nginx-proxy-manager
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '8180:80' # Public HTTP Port
      - '8443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP
    environment:
      # Mysql/Maria connection parameters:
      DB_MYSQL_HOST: "db"
      DB_MYSQL_PORT: 3306
      DB_MYSQL_USER: "npm"
      DB_MYSQL_PASSWORD: "npm"
      DB_MYSQL_NAME: "npm"
      # Uncomment this if IPv6 is not enabled on your host
      DISABLE_IPV6: 'true'
    volumes:
      - /volume2/docker/npm/data:/data
      - /volume2/docker/npm/letsencrypt:/etc/letsencrypt
    labels:
      - diun.enable=true
    depends_on:
      - db

  db:
    image: 'jc21/mariadb-aria:latest'
    container_name: nginx-proxy-manager-db
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: 'npm'
      MYSQL_DATABASE: 'npm'
      MYSQL_USER: 'npm'
      MYSQL_PASSWORD: 'npm'
      MARIADB_AUTO_UPGRADE: '1'
    volumes:
      - /volume2/docker/npm/mysql:/var/lib/mysql
    labels:
      - diun.enable=true
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

Similar threads

Well if you want to build it as pure and as minimal as you need, start with the default 7MB one :D. Alpine...
Replies
3
Views
539
  • Question Question
Hello, Python 3.9 I just tried to copy my files from the web station using file station to a usb drive...
Replies
0
Views
91

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top