Open ms6rb opened 1 year ago
Same Issue, i tried on windows, and ubuntu, no working
Try changing the npm scripts in package.json according to the following comment:
https://github.com/pashpashpash/vault-ai/issues/7#issuecomment-1513550604
Try changing the npm scripts in package.json according to the following comment:
it worked regarding the installation of the packages. but when I try npm start
nothing happened and I got this:
npm start
> vault-web-server@1.0.0 start
> bash -c 'source ./scripts/source-me.sh && ./scripts/go-compile.sh ./vault-web-server'
=> Environment Variables Loaded
-> Installing './vault-web-server' dependencies
-> Compiling './vault-web-server'
... done
although npm run dev
work fine.
@ms6rb Those logs look good – the only difference is you want to run ./bin/vault-web-server
after it compiles to start the server, and then go to your browser on http://localhost:8100/ to use the site locally
@ms6rb try swapping out the top part of your source script to this:
#!/bin/bash
# Useful variables. Source from the root of the project
# Get the sourced script's directory in a more portable way
if [[ "${BASH_SOURCE[0]}" != /* ]]; then
script_name="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
else
script_name="${BASH_SOURCE[0]}"
fi
dir_path="$( cd "$(dirname "$script_name")" >/dev/null 2>&1 ; pwd -P )"
echo "DEBUG: dir_path = ${dir_path}"
secrets_path="${dir_path}/../secret"
echo "DEBUG: secrets_path = ${secrets_path}"
test ! -d $secrets_path && echo "ERR: ../secret dir missing!" && return 1
And then change your package.json "start" script like so:
"start": "bash -c '. ./scripts/source-me.sh && ./scripts/go-compile.sh ./vault-web-server && echo && ./bin/vault-web-server'",
then try running npm start
I got this error:
> vault-web-server@1.0.0 start
> bash -c '. ./scripts/source-me.sh && ./scripts/go-compile.sh ./vault-web-server && echo && ./bin/vault-web-server'
DEBUG: dir_path = /home/xxx/vault-ai/scripts
DEBUG: secrets_path = /home/xxx/vault-ai/scripts/../secret
I'm trying to install the packages on fresh WSL Ubuntu
when I try
npm install
:Log: