You didn’t do the npm run build-prod
step (or it failed).
I wouldn’t recommend that script. You’ve got Makerverse checked out into the root directory.
that line unclearly meant /[path to makerverse]. It made sense in my head when I typed it.
That’s not what that line would do. The /
prefix is an absolute path to the root of the filesystem. If you don’t include a .
in front of it, you’re cd`ing back into root first. The prefix slash means “root of the FS.”
@Orob @Bob_Craig @izaklast I just pushed a big update to the github. We now have a working Windows executable on the Releases page. And I completely re-wrote the README with (hopefully) much easier instructions.
Easy, easy, one thing at a time guys! LOL
Can I still run npm run build-prod or do I need to go back and start over?
Please follow the new README and let me know where you get stuck (trying to polish it). But to answer your question, npm run build-prod
is the “build” step that updates the application. Unless you’ve not checked out a new version, there’s no need to do this more than once (ever).
In the github page?
It’s linked in my last post…
Yeah sorry, just saw that. Too many tabs open!
READMEs are also, always, the default homepage of any Github project.
No worries Don’t forget, because I just pushed updates, the code you currently have checked out may be out-of-date. Either download the new zip, or do a
git pull
.
Trying for a Rpi setup with remote access to Windows10.
I don’t know how to do either of those yet. Open chromium, navigate toe the git hub and find the zip? I seriously need 3rd grader (or lower) level instructions on this stuff. Maybe in a few months I’ll know what I’m doing.
Paragraph 2 of the README says:
You can always find the latest versions on the Releases page.
By which I meant to say: that’s where the downloads are located on Github projects. The “zip” refers to the Source Code zip in this step.
Edit: when it comes to updating, again referring to the README:
To update the application, just
git pull
(or re-download) and start the application again.
The distinction you’re seeing is that git
is a tool for making it easier to grab “patches.” Instead of re-downloading, you could use git to pull the updates I’ve pushed.
But I digress. The other downside to downloading the updates as a zip is that they take 1-2 hours after I upload to be published for zip download. Since we’re talking in near real-time here, the update might not be up yet in the “Releases” downloads.
I went with these instructions with a fresh install of Raspbien. Got pretty far and then ran into these errors:
[build-prod-server] npm WARN npm npm does not support Node.js v10.21.0
[build-prod-server] npm WARN npm You should probably upgrade to a newer version of node as we
[build-prod-server] npm WARN npm can’t make any promises that npm will work with this version.
[build-prod-server] npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
[build-prod-server] npm WARN npm You can find the latest version at https://nodejs.org/
[build-prod-server]
[build-prod-server] > makerverse@1.1.0 build-i18n-server /home/pi/makerverse
[build-prod-server] > i18next-scanner --config i18next-scanner.config.server.js “src/server//*.{html,js,jsx}" "!src/server/i18n/” “!/node_modules/”
[build-prod-server]
[build-prod-server] i18next-scanner: Unable to parse I18n component from “/home/pi/makerverse/src/server/controllers/index.js”
[build-prod-server] SyntaxError: Unexpected token (1:7)
[build-prod-server] i18next-scanner: Unable to parse I18n component from “/home/pi/makerverse/src/server/controllers/Maslow/MaslowMemory.js”
[build-prod-server] SyntaxError: Unexpected token (318:57)
[build-prod-server] i18next-scanner: Unable to parse I18n component from “/home/pi/makerverse/src/server/services/index.js”
[build-prod-server] SyntaxError: Unexpected token (1:7)
[build-prod-server]
[build-prod-server] > makerverse@1.1.0 postbuild-prod-server /home/pi/makerverse
[build-prod-server] > bash -c ‘mkdir -p dist/makerverse/server; cp -af src/server/{i18n,views} dist/makerverse/server/’
[build-prod-server]
[build-prod-server] npm run build-prod-server exited with code 0
Things looked very promising when I left it last night - I installed Node v12 then did the git clone. When that was done I followed your instructions in the README, doing the CHMOD and BASH commands. Those DID take a long time so I let it run overnight. Things finished but there were some errors at the end and while the logs say the webserver started, I can’t get the page to load in the local browser.
I have intentionally not tried any experimentation (reboots, etc) and will leave the current state as-is to see if there is anything you want me to investigate or try again.
Bob
pi@webcontrol:~ $ git clone https://github.com/makermadecnc/makerverse.git
Cloning into 'makerverse'...
remote: Enumerating objects: 660, done.
remote: Counting objects: 100% (660/660), done.
remote: Compressing objects: 100% (438/438), done.
remote: Total 3295 (delta 413), reused 394 (delta 216), pack-reused 2635
Receiving objects: 100% (3295/3295), 77.85 MiB | 1.59 MiB/s, done.
Resolving deltas: 100% (1676/1676), done.
Checking out files: 100% (1830/1830), done.
pi@webcontrol:~ $ cd makerverse
pi@webcontrol:~/makerverse $ chmod +x ./bin/makerverse
pi@webcontrol:~/makerverse $ bash ./bin/makerverse
NodeJS v12.18.3 detected
*** Removed several deprecation warnings to reduce the text size to fit in the forum message maximum limit **
> @serialport/bindings@2.0.8 install /home/pi/makerverse/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.18.3 runtime=node arch=arm libc= platform=linux)
make: Entering directory '/home/pi/makerverse/node_modules/@serialport/bindings/build'
CXX(target) Release/obj.target/bindings/src/serialport.o
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
^~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
an::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
^
In file included from /home/pi/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.3/include/node/node.h:67,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/home/pi/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
an::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
^
In file included from /home/pi/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.3/include/node/node.h:67,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/home/pi/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
an::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
^
In file included from /home/pi/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.3/include/node/node.h:67,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/home/pi/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
eue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
^
In file included from /home/pi/.cache/node-gyp/12.18.3/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.3/include/node/node.h:67,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/12.18.3/include/node/v8.h:3499:22: note: declared here
bool Set(Local<Value> key, Local<Value> value));
^~~
/home/pi/.cache/node-gyp/12.18.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
^~~~~~~~~~~~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
^
In file included from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/12.18.3/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/pi/.cache/node-gyp/12.18.3/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(serialport, init);
^~~~~~~~~~~
CXX(target) Release/obj.target/bindings/src/serialport_unix.o
In file included from ../src/serialport.h:6,
from ../src/serialport_unix.cpp:2:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bindings/src/poller.o
In file included from ../src/poller.cpp:1:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
CXX(target) Release/obj.target/bindings/src/serialport_linux.o
SOLINK_MODULE(target) Release/obj.target/bindings.node
COPY Release/bindings.node
make: Leaving directory '/home/pi/makerverse/node_modules/@serialport/bindings/build'
> pre-push@0.1.1 install /home/pi/makerverse/node_modules/pre-push
> node install.js
> core-js@3.6.5 postinstall /home/pi/makerverse/node_modules/@babel/register/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> core-js@2.6.11 postinstall /home/pi/makerverse/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> electron@4.2.12 postinstall /home/pi/makerverse/node_modules/electron
> node install.js
Downloading tmp-1493-1-SHASUMS256.txt-4.2.12
[============================================>] 100.0% of 4.79 kB (4.79 kB/s)
> final-form@4.12.0 postinstall /home/pi/makerverse/node_modules/final-form
> node -e "console.log('\u001b[35m\u001b[1mUsing final-form at work? You can now donate to our open collective:\u001b[22m\u001b[39m\n > \u001b[34mhttps://opencollective.com/final-form/donate\u001b[0m')"
Using final-form at work? You can now donate to our open collective:
> https://opencollective.com/final-form/donate
> nodemon@2.0.4 postinstall /home/pi/makerverse/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
> react-final-form@3.7.0 postinstall /home/pi/makerverse/node_modules/react-final-form
> node ./scripts/postinstall.js || exit 0
Use react-final-form at work? Consider supporting our development efforts at opencollective.com/final-form
> styled-components@3.4.10 postinstall /home/pi/makerverse/node_modules/styled-components
> node ./scripts/postinstall.js || exit 0
Use styled-components at work? Consider supporting our development efforts at opencollective.com/styled-components
> makerverse@1.1.0 postinstall /home/pi/makerverse
> opencollective postinstall
[server error] Cannot load the stats for makerverse – please try again later
Thanks for installing makerverse
Please consider donating to our open collective
to help us maintain this package.
Donate: https://opencollective.com/makerverse/donate
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"12.18.3","npm":"6.14.6"})
npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN react-i18next@10.7.0 requires a peer of react@>= 16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-datepicker@1.5.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-datepicker@1.5.0 requires a peer of react-dom@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint-plugin-import@^2.18.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint-plugin-react@^7.14.2 but none is installed. You must install peer dependencies yourself.
npm WARN makerverse@1.1.0 No repository field.
npm WARN The package @babel/polyfill is included as both a dev and production dependency.
added 2200 packages from 1113 contributors and audited 2217 packages in 780.18s
52 packages are looking for funding
run `npm fund` for details
found 22 vulnerabilities (9 low, 8 moderate, 5 high)
run `npm audit fix` to fix them, or `npm audit` for details
> makerverse@1.1.0 prebuild-prod /home/pi/makerverse
> npm run package-sync && bash scripts/prebuild-prod.sh
> makerverse@1.1.0 package-sync /home/pi/makerverse
> node scripts/package-sync.js
~/makerverse/src ~/makerverse
Successfully compiled 2 files with Babel.
Successfully compiled 7 files with Babel.
~/makerverse
> makerverse@1.1.0 build-prod /home/pi/makerverse
> concurrently --kill-others-on-fail --names "build-prod-server,build-prod-app" "npm run build-prod-server" "npm run build-prod-app"
[build-prod-app]
[build-prod-app] > makerverse@1.1.0 build-prod-app /home/pi/makerverse
[build-prod-app] > cross-env NODE_ENV=production webpack-cli --config webpack.config.app.production.js && npm run build-i18n-app
[build-prod-app]
[build-prod-server]
[build-prod-server] > makerverse@1.1.0 build-prod-server /home/pi/makerverse
[build-prod-server] > cross-env NODE_ENV=production webpack-cli --config webpack.config.server.production.js && npm run build-i18n-server
[build-prod-server]
[build-prod-app] (node:1766) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
[build-prod-server] Hash: c76fb9a38a37d56695fd
[build-prod-server] Version: webpack 4.30.0
[build-prod-server] Time: 272102ms
[build-prod-server] Built at: 08/29/2020 11:09:24 PM
[build-prod-server] Asset Size Chunks Chunk Names
[build-prod-server] index.js 804 KiB 0 [emitted] index
[build-prod-server] index.js.map 670 KiB 0 [emitted] index
[build-prod-server] Entrypoint index = index.js index.js.map
[build-prod-server] [1] ./config/settings.js 459 bytes {0} [built]
[build-prod-server] [2] ./services/configstore/index.js 8.71 KiB {0} [built]
[build-prod-server] [4] external "lodash/set" 42 bytes {0} [built]
[build-prod-server] [6] external "ensure-array" 42 bytes {0} [built]
[build-prod-server] [7] ./lib/urljoin.js 420 bytes {0} [built]
[build-prod-server] [10] ./lib/logger.js 3.26 KiB {0} [built]
[build-prod-server] [12] ./lib/ensure-type.js 903 bytes {0} [built]
[build-prod-server] [13] external "lodash/isEqual" 42 bytes {0} [built]
[build-prod-server] [15] external "chalk" 42 bytes {0} [built]
[build-prod-server] [17] external "path" 42 bytes {0} [built]
[build-prod-server] [23] ./services/monitor/index.js + 1 modules 4.44 KiB {0} [built]
[build-prod-server] | ./services/monitor/index.js 1.58 KiB [built]
[build-prod-server] | ./services/monitor/FSMonitor.js 2.85 KiB [built]
[build-prod-server] [27] external "fs" 42 bytes {0} [built]
[build-prod-server] [29] external "bcrypt-nodejs" 42 bytes {0} [built]
[build-prod-server] [99] multi ./index.js 28 bytes {0} [built]
[build-prod-server] [102] ./index.js + 86 modules 582 KiB {0} [built]
[build-prod-server] | ./index.js 11.3 KiB [built]
[build-prod-server] | ./services/cncengine/index.js 264 bytes [built]
[build-prod-server] | ./services/cncengine/CNCEngine.js 15.6 KiB [built]
[build-prod-server] | ./lib/EventTrigger.js 3.02 KiB [built]
[build-prod-server] | ./controllers/Grbl/constants.js 13.5 KiB [built]
[build-prod-server] | ./controllers/Marlin/constants.js 135 bytes [built]
[build-prod-server] | ./controllers/Smoothie/constants.js 1.53 KiB [built]
[build-prod-server] | ./controllers/TinyG/constants.js 14.3 KiB [built]
[build-prod-server] | ./controllers/Maslow/constants.js 13.7 KiB [built]
[build-prod-server] | ./controllers/index.js 539 bytes [built]
[build-prod-server] | ./controllers/Grbl/GrblController.js 47.4 KiB [built]
[build-prod-server] | ./controllers/Marlin/MarlinController.js 46.4 KiB [built]
[build-prod-server] | ./controllers/Smoothie/SmoothieController.js 45 KiB [built]
[build-prod-server] | ./controllers/TinyG/TinyGController.js 53.2 KiB [built]
[build-prod-server] | ./controllers/Maslow/MaslowController.js 50.1 KiB [built]
[build-prod-server] | + 72 hidden modules
[build-prod-server] + 88 hidden modules
[build-prod-server]
[build-prod-server] > makerverse@1.1.0 build-i18n-server /home/pi/makerverse
[build-prod-server] > i18next-scanner --config i18next-scanner.config.server.js "src/server/**/*.{html,js,jsx}" "!src/server/i18n/**" "!**/node_modules/**"
[build-prod-server]
[build-prod-server] i18next-scanner: Unable to parse I18n component from "/home/pi/makerverse/src/server/controllers/index.js"
[build-prod-server] SyntaxError: Unexpected token (1:7)
[build-prod-server] i18next-scanner: Unable to parse I18n component from "/home/pi/makerverse/src/server/controllers/Maslow/MaslowMemory.js"
[build-prod-server] SyntaxError: Unexpected token (318:57)
[build-prod-server] i18next-scanner: Unable to parse I18n component from "/home/pi/makerverse/src/server/services/index.js"
[build-prod-server] SyntaxError: Unexpected token (1:7)
[build-prod-server]
[build-prod-server] > makerverse@1.1.0 postbuild-prod-server /home/pi/makerverse
[build-prod-server] > bash -c 'mkdir -p dist/makerverse/server; cp -af src/server/{i18n,views} dist/makerverse/server/'
[build-prod-server]
[build-prod-server] npm run build-prod-server exited with code 0
[build-prod-app]
[build-prod-app] <--- Last few GCs --->
[build-prod-app]
[build-prod-app] [1766:0x2ae8cc8] 892159 ms: Mark-sweep 226.5 (231.9) -> 226.2 (231.7) MB, 2268.6 / 0.0 ms (average mu = 0.236, current mu = 0.083) allocation failure scavenge might not succeed
[build-prod-app] [1766:0x2ae8cc8] 894399 ms: Mark-sweep 226.6 (231.7) -> 226.3 (231.7) MB, 2162.6 / 0.0 ms (average mu = 0.145, current mu = 0.034) allocation failure scavenge might not succeed
[build-prod-app]
[build-prod-app]
[build-prod-app] <--- JS stacktrace --->
[build-prod-app]
[build-prod-app] ==== JS stack trace =========================================
[build-prod-app]
[build-prod-app] 0: ExitFrame [pc: 0xeab900]
[build-prod-app] 1: StubFrame [pc: 0xe1e800]
[build-prod-app] 2: ConstructFrame [pc: 0xe1e1a0]
[build-prod-app] 3: StubFrame [pc: 0xf1a460]
[build-prod-app] Security context: 0x2e6ce8b5 <JSObject>
[build-prod-app] 4: _(aka _) [0x4a41a27d] [/home/pi/makerverse/node_modules/terser/dist/bundle.min.js:1] [bytecode=0x4a42d001 offset=341](this=0x5a4c0279 <undefined>,0x5a4c2709 <String[#4]: name>,0x33b5bca1 <String[19]: __webpack_require__>,0x5a4c0279 <undefined>)
[build-prod-app] 5: j [0x4a41a...
[build-prod-app]
[build-prod-app] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[build-prod-app] npm ERR! code ELIFECYCLE
[build-prod-app] npm ERR! errno 1
[build-prod-app] npm ERR! makerverse@1.1.0 build-prod-app: `cross-env NODE_ENV=production webpack-cli --config webpack.config.app.production.js && npm run build-i18n-app`
[build-prod-app] npm ERR! Exit status 1
[build-prod-app] npm ERR!
[build-prod-app] npm ERR! Failed at the makerverse@1.1.0 build-prod-app script.
[build-prod-app] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[build-prod-app]
[build-prod-app] npm ERR! A complete log of this run can be found in:
[build-prod-app] npm ERR! /home/pi/.npm/_logs/2020-08-30T03_19_38_672Z-debug.log
[build-prod-app] npm run build-prod-app exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! makerverse@1.1.0 build-prod: `concurrently --kill-others-on-fail --names "build-prod-server,build-prod-app" "npm run build-prod-server" "npm run build-prod-app"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the makerverse@1.1.0 build-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-08-30T03_19_38_861Z-debug.log
> makerverse@1.1.0 start /home/pi/makerverse
> ./bin/app
2020-08-30T03:19:48.548Z - info init Loading configuration from "/home/pi/.cncrc"
Error: ENOENT: no such file or directory, stat '/home/pi/makerverse/dist/makerverse/app/favicon.ico'
at Object.statSync (fs.js:1016:3)
at resolveSync (/home/pi/makerverse/node_modules/serve-favicon/index.js:187:17)
at favicon (/home/pi/makerverse/node_modules/serve-favicon/index.js:61:12)
at appMain (/home/pi/makerverse/dist/makerverse/server/index.js:4257:64)
at server (/home/pi/makerverse/dist/makerverse/server/index.js:22554:46)
at /home/pi/makerverse/node_modules/webappengine/dist/app/app.multihost.js:132:25
at Array.forEach (<anonymous>)
at Object.appMain [as default] (/home/pi/makerverse/node_modules/webappengine/dist/app/app.multihost.js:97:31)
at createServer (/home/pi/makerverse/node_modules/webappengine/dist/app/server.js:62:49)
at serverMain (/home/pi/makerverse/node_modules/webappengine/dist/app/server.js:114:9)
at createServer (/home/pi/makerverse/node_modules/webappengine/dist/app/index.js:57:33)
at module.exports (/home/pi/makerverse/node_modules/webappengine/index.js:13:12)
at Module.createServer (/home/pi/makerverse/dist/makerverse/server/index.js:22557:34)
at /home/pi/makerverse/dist/makerverse/server-cli.js:92:25
at new Promise (<anonymous>)
at _default (/home/pi/makerverse/dist/makerverse/server-cli.js:88:10)
2020-08-30T03:19:50.056Z - error: The multi-host server does not exist: {
"type": "server",
"route": "/"
} at /home/pi/makerverse/node_modules/webappengine/dist/app/app.multihost.js:138:27 id=0, pid=1878
2020-08-30T03:19:50.329Z - info init Starting the server at http://127.0.1.1:8000
I’m trying to set this up on a RPi 3. With all the Makerverse code pulled down, it is almost out of storage. Could that be the simple answer?
Hmm, I did get a ton of warnings when building this, but it did build and run. Also, I have to confess, I did not do any actual machine testing, I hesitate since I have my Maslow dialed in using WebControl.
added 2200 packages from 1113 contributors and audited 2217 packages in 588.628s
52 packages are looking for funding
run `npm fund` for details
found 22 vulnerabilities (9 low, 8 moderate, 5 high)
run `npm audit fix` to fix them, or `npm audit` for details
The default RaspberryPi OS repository installs node v10.21. The current instructions use version 12.
It’s probably best to follow @zaneclaes zaneclaes instructions from here on out, which add the node source repository to grab newer versions.
Please, please, please – follow the README! I spent a lot a time on it!! If for some reason you’re confused by the README or it doesn’t work, please let me know. But by using those non-official instructions, you’ve installed some outdated software (with security vulnerabilities!) and gotten your computer into a bad state, making everything much harder.
You can try https://gist.github.com for easy pasting of code
Yes. Also, you’re out of RAM. What device are you on, and how much free RAM do you have?