Read the statement by Michael Teeuw here.
can't run "npm run start"
-
@sdetweil sure did. I had to create an user to run your script since it wouldn’t allow me to do in root
-
@jefftse not supposed to be root
are u trying to run as root?can’t do that
-
@sdetweil correct, and I created an user for the install. the install went fine. I just can’t run it!
-
@jefftse I don’t understand created a user.
raspian installs and starts with user pi -
@sdetweil you are running under the same user as during install time, right?
-
@sdetweil i think i got it working. I deleted everything and run your script again in “pi” user.
one question, I just enabled auto start and how do i disable it ? I need to config the config file
-
@sdetweil Thank you!
-
@jefftse pm2 stop
then when you reboot it won’t come up again -
@sdetweil u can use npm start to test