mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
add npmglobal
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# check npm exists
|
||||
if [ -f /usr/bin/npm ]; then
|
||||
## Ubuntu
|
||||
mkdir /config/.npm-global
|
||||
npm config set prefix '/config/.npm-global'
|
||||
export PATH=/config/.npm-global/bin:$PATH
|
||||
source ~/.profile
|
||||
fi
|
||||
Reference in New Issue
Block a user