(06-09-2024, 07:52 PM)TheOldPresbyope Wrote: You're going to have to give details about what you actually did.
-Fresh install of moode 9.0.1 on a pi5 via Raspberry Pi Imager
Followed Instructions as given at
https://github.com/moode-player/docs/blo...-end-stuff
~ $ cd ~
~ $ sudo apt-get update
~ $ sudo apt-get -y install npm # git is also required (maybe extend documentation?)
~ $ git clone
https://github.com/moode-player/moode.git
~ $ cd moode
~/moode $ npm ci
~/moode $ node_modules/.bin/gulp build
~/moode $ node_modules/.bin/gulp deploy --test
~/moode $ sudo mv /var/www /var/www.org
~/moode $ sudo node_modules/.bin/gulp deploy
~/moode $ moodeutl -r
-> got error as described above
Noticed in package.json
Code:
"name": "moOde",
"version": "8.1.1",
Branch was develop. (is this the right branch?)
I checked out master. -> Same Version in package.json
Should I edit the Version in package.json?
(06-09-2024, 07:52 PM)TheOldPresbyope Wrote: I copied the script from the end of that Developing with Gulp document to a file create_dev_env.sh on a Pi which has a copy of moOde 9.0.1.
I edited the script to change those "\_" string separators to "_" so it would run in Linux. Ran the script. Ran moodeutl -l. Everything works as expected.
Regards,
Kent
So you ran the script from 7. Appendix in the documentation while I followed TL;DR
Did you do a fork or a clone?
What did you use as GIT_USER_NAME?
Just did a fresh install and moodeutl is giving no error.
then i run this script
Code:
#!/bin/bash
#
# Setup Gulp build environment for moOde
#
cd ~
# Install packages
sudo apt-get update
sudo apt-get -y install npm git
# 2. Alternative is to clone the repo
git clone https://github.com/moode-player/moode.git
cd moode
npm ci
node_modules/.bin/gulp build
node_modules/.bin/gulp deploy --test
# create a backup of the original www root
sudo mv /var/www /var/www.org
sudo node_modules/.bin/gulp deploy
moodeutl -r
PHP Fatal error: Uncaught Error: Undefined constant "FEAT_RESERVED" in /usr/local/bin/moodeutl:35
Stack trace:
#0 {main}
thrown in /usr/local/bin/moodeutl on line 35
So somewhere along this lines my moodeutl gets changed.
I added this in the penultimate line in my script
Code:
sudo cp usr/local/bin/moodeutl /usr/local/bin/moodeutl
And it runs without error.
What about adding such a script to the distribution?