bpanel
bpanel copied to clipboard
Problems with installing via npm
The installer script I'm working on installs bpanel via npm:
npm install bpanel-org/bpanel#development
This installs bpanel in <app root>/node_modules/@bpanel/bpanel
and when entering that directory and running npm run start
or npm run start:poll
a few issues pop up:
-
None of the
devDependencies
inpackage.json
are installed by default. Execution first breaks becausewebpack
is missing, then I manually installed that, then it broke looking for the next package it neededmini-css-extract-plugin
and so on... After installing again like normal, if I enter the root bpanel directory and runnpm install --only=dev
ALL the devDependencies will be added, and installed in<app root>/node_modules/@bpanel/bpanel/node_modules
but I can't figure out a way to install everything in the first command. Likely stuff likewebpack
should just be a regular dependency anyway right? -
There are still module resolution errors, I don't even understand:
Module not found: Error: Can't resolve 'bcoin' in '/Users/matthewzipkin/Desktop/T/node_modules/bmultisig/lib'
Module not found: Error: Can't resolve 'hs-client' in '/Users/matthewzipkin/Desktop/T/node_modules/@bpanel/bpanel'
Module not found: Error: Can't resolve 'hs-client' in '/Users/matthewzipkin/Desktop/T/node_modules/@bpanel/bpanel-utils/dist'
Module not found: Error: Can't resolve 'hs-client' in '/Users/matthewzipkin/Desktop/T/node_modules/hsd/lib/wallet'
Module not found: Error: Can't resolve 'hsd' in '/Users/matthewzipkin/Desktop/T/node_modules/@bpanel/bpanel-utils/dist'