psitransfer
psitransfer copied to clipboard
installation
I am not quite familliar with this npm so I need a bit help. I have installed psitransfer on my web server but I get nothing when I try I did this to install on centos 7.9 Manual
You need to have Node.js version >= 7.4 and npm installed.
1.) Download and extract a prebuild PsiTransfer release from GitHub
2.) Install the dependencies: npm install --production
3.) Run the app: npm start Linux Systemd service
You can also install PsiTransfer as (Linux) system service. Most distributions use Systemd as main init system. You should not run PsiTransfer with root privileges!
Preparation
Create a target folder for PsiTransfer
mkdir -p /opt/psitransfer cd /opt/psitransfer
Download and extract a prebuild
curl -sL https://github.com/psi-4ward/psitransfer/releases/download/1.1.0-beta/psitransfer-1.1.0-beta.tar.gz | tar xz --strip 1
Install dependencies
npm install --production
Add a user psitransfer
sudo useradd --system psitransfer
Make psitransfer owner of /opt/psitransfer
sudo chown -R psitransfer:psitransfer /opt/psitransfer
Systemd unit file
Grab the psitransfer.service sample file, put it in /etc/systemd/system/ and adjust to your needs.
cd /etc/systemd/system sudo wget https://raw.githubusercontent.com/psi-4ward/psitransfer/master/docs/psitransfer.service
Start the service
sudo systemctl start psitransfer
Show the status
sudo systemctl status psitransfer
Enable autostart on boot
sudo systemctl enable psitransfer
And now I have error when npm start
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/opt/psitransfer/node_modules/.bin:/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
10 verbose lifecycle [email protected]~start: CWD: /opt/psitransfer
11 silly lifecycle [email protected]~start: Args: [ '-c', 'NODE_ENV=production node app.js' ]
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: NODE_ENV=production node app.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.NODE_ENV=production node app.js
23 error Exit status 1
24 error Failed at the [email protected] start script 'NODE_ENV=production node app.js'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the psitransfer package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error NODE_ENV=production node app.js
24 error You can get information on how to open an issue for this project with:
24 error npm bugs psitransfer
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls psitransfer
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]
Can anyone help me?