Skip to content

Instantly share code, notes, and snippets.

@crbyxwpzfl
Last active February 21, 2022 11:24
Show Gist options
  • Save crbyxwpzfl/b5e9597a82f4082209491f32b90af816 to your computer and use it in GitHub Desktop.
Save crbyxwpzfl/b5e9597a82f4082209491f32b90af816 to your computer and use it in GitHub Desktop.
portable homebridge notes

start-homebridge

cd $env:DESKTOP; node.exe .\nodejs\node_modules\homebridge\bin\homebridge homebridge -D -U .\nodejs\homebridge-dir

for global use

add 'DESKTOP' environment variable
add '%DESKTOP%\path\to\nodejs' to 'PATH' variable
add privates env variabel with value path\to\private #in config.json python imports privates.py via this env variable

nodejs portable

get binary zip from nodejs
extract to folder
make file .npmrc

cache=cache-dir
prefix=

check everithing works and check dirs are correct with

node -v
npm -v
npm config list

update npm

npm install npm@latest

when ERR run again but drag files causing the ERR out the dir while install is running

gerneral npm

npm list :list install packages in current dir
npm outdated :list outdated packages
npm uninstall :uninstall a package
npm install :install a package
npm update :to update outdated packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment