Giter VIP home page Giter VIP logo

Comments (22)

BNNorman avatar BNNorman commented on May 26, 2024 1

Ok I'll try again tomorrow

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

Ahhhh. You need to clone the git repository. The build system is dependent on cloning it as a git repository, as the build engine is located in a git submodule. I should clarify that in the instructions. Try this:

git clone https://github.com/ConnectedHumber/Air-Quality-Web
cd Air-Quality-Web
./build setup-dev

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

Ok!

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

Slowly slowly catch the monkey ... I installed npm with sudo apt-get install (went ok). Any ideas?

pi@PiNAT:~/aq_web/Air-Quality-Web $ ./build setup-dev
 * Checking environment
    * Checking for mysql                                                                                                                           [ ok ]

 * Installing client development dependencies
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.9.35+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pi/aq_web/Air-Quality-Web
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E405
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector Cloning into bare repository '/home/pi/.npm/_git-remotes/git-github-com-github-hekigan-dom-create-element-query-selector-f238325b'...
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector Permission denied (publickey).
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector fatal: Could not read from remote repository.
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector Please make sure you have the correct access rights
npm ERR! git clone [email protected]:github:hekigan/dom-create-element-query-selector and the repository exists.
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/aq_web/Air-Quality-Web/npm-debug.log
npm ERR! not ok code 0

 *                                                                                                                                                 [ !! ]
pi@PiNAT:~/aq_web/Air-Quality-Web $

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

Ah. The version of Node.JS in the official repositories is really old.

Perhaps this apt repository would help to bring it up-to-date?

https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

Minefield. Trying this-

bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)

from-
https://nodered.org/docs/hardware/raspberrypi

to upgrade node-red.

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

I see. If you're having difficulty, I've got a script (direct link) that you can run to automagically update Node.JS to the latest version.

cd $HOME;
curl -OL https://gitlab.com/sbrl/bin/raw/master/node-update;
chmod +x node-update;
sudo node-update;

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

The above is running now and takes a while

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

Crashed my Pi 1 so considering an upgrade tomorrow - and an external USB drive.

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

it's (sudo) sh node-update
Ok, less error messages, a bunch of NPM warnings tar ENOENT no such file or directory, open /home/pi/aq_web/Ait-Quality-Web/node_modules/.staging/...
with a final error regarding .editorconfig 'ERR err.code.match is not a function

I'm wondering if these are created later.

./build client failed with ./build line 139 node_modules/rollup/bin/rollup: No such file or directory.

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

Sounds like the npm dependencies didn't install correctly. Do you have the log output of that? If it's long, perhaps you could email it as an attachment

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

Does this help? npm version is 6.8.0

 *                                                                                                                                    [ !! ]
pi@DEV:~/aq_web/Air-Quality-Web $ sudo ./build setup-dev
 * Checking environment
    * Checking for mysql                                                                                                              [ ok ]

 * Installing client development dependencies
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-convert-values-cd0c7662/package.json'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-convert-values-cd0c7662/README.md'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-2fd67493/lib/at-rule.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-f07e2f20/lib/at-rule.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-convert-values-cd0c7662/CHANGELOG.md'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-01c8ea7d/lib/at-rule.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-4cfa2387/lib/at-rule.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-f07e2f20/lib/node.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-convert-values-cd0c7662/LICENSE-MIT'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-4cfa2387/lib/node.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-7121f6fb/docs/guidelines/plugin.md'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/file.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-c945527d/lib/map-generator.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-7121f6fb/docs/guidelines/runner.md'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/index.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-fd0af123/lib/map-generator.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-4866c495/lib/parse.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-ee9f821d/lib/parse.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/link.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-4866c495/lib/parser.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-ee9f821d/lib/parser.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/symlink-paths.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/terser-048e5a01/dist/bundle.js.map'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/symlink-type.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/caniuse-db-90760934/.editorconfig'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/fs-extra-a6da1dad/lib/ensure/symlink.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-54e0a717/lib/css-syntax-error.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-discard-comments-31732a15/dist/lib/commentParser.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-discard-comments-31732a15/dist/lib/commentRemover.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/add-1000-after.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-71aba13f/lib/parse.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-f227a69b/lib/list.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-aa59d02e/lib/list.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/add-markers-offscreen.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-71aba13f/lib/parser.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-f227a69b/lib/map-generator.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-aa59d02e/lib/map-generator.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/add-remove-before-addtomap.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/animationless-zoom.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/click-cluster-at-screen-edge.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/disappearing-marker-from-spider.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/doesnt-update-cluster-on-bottom-level.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/drag-with-spiderfying.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/rollup-da4ad004/dist/rollup.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/comment.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/remove-add-clustering.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/remove-when-spiderfied.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-69faabfd/lib/stringifier.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/previous-map.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/removelayer-after-remove-from-map.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/setView-doesnt-remove.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/processor.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/zoomtoshowlayer-doesnt-need-to-zoom.html'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/old-bugs/zoomtoshowlayer-doesnt-zoom-if-centered-on.html'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/result.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet.markercluster-b374cf32/example/realworld.10000.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/root.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/list.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/rule.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-30657c18/lib/lazy-result.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-0527e469/lib/tokenize.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-3f489dc4/lib/tokenize.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-be41b5e3/lib/vendor.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-be41b5e3/lib/warn-once.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-be41b5e3/lib/warning.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-be41b5e3/lib/postcss.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-2a1a24ef/lib/vendor.js'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-2a1a24ef/lib/warn-once.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-2a1a24ef/lib/warning.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-2a1a24ef/lib/postcss.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/postcss-670f6c51/lib/container.js'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, open '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/leaflet-timedimension-557d5e38/examples/data/sorrento-drift.json'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm WARN tar ENOENT: no such file or directory, lstat '/home/pi/aq_web/Air-Quality-Web/node_modules/.staging/chart.js-948a92b1/dist/docs'
npm ERR! err.code.match is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-22T13_01_49_026Z-debug.log

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

This is the log file mentioned above
2019-02-22T13_01_49_026Z-debug.log

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

I see. Thanks for the info, @BNNorman!

It looks like you've got the same versions of node and npm that I have on my Raspberry Pi here at home too now.

I assume that the /home/pi/aq_web/Air-Quality-Web directory is just a normal place, and not on a weird file system type such as a remote file share etc.?

I've done some research, and it looks like there might be some junk left over in the node_modules folder from before when you tried to run the setup script with the old version of node. Could you try wiping it, re-cloning, and re-running ./build setup setup-dev please?

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

You need to add lantern to the requirements list/. It would also be a good idea to indicate minimum versions of packages used.
I copied the app folder and api.php to /var/www/html and got the map up but no sensors - I would like to point this at my copy of the database so where does it get the info from?

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

BTW When I access the map it pops up a dialog saying 'from localhost' , nothing else - does that mean anything? Does it expect a proper URL?

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

Ok, found where settings lives BUT api.php didn't create the data folder under /var/www/html (permissions) - ran php api.php and it created it in my work folder. Edited settings.toml to add my database user/password copied data to /var/www/html but still not getting any sensors displayed

The web server error.log shows this

[Sat Feb 23 06:35:14.563944 2019] [:error] [pid 551] [client ::1:55096] PHP Parse error: syntax error, unexpected '?' in /var/www/html/api.php on line 54, referer: http://localhost/app/

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

I copied ALL the folders into /var/www/html and still am unable to get the devices showing. The unexpected ? message is stiil being logged yet I have copied that section code and put it into a separate PHP file and it runs fine. (Had to replace $_GET and $Settings->get with variables but the code worked. Is this an apache2 thing? When I do a test page it appears that apache is running php5 not 7. sudo apt-get install libapache2-mod-php7 fails - unable to locate package. Investigating ...

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

sudo apt-get install libapache2-mod-php7.0 is the kiddy

from air-quality-web.

BNNorman avatar BNNorman commented on May 26, 2024

BINGO! Got devices on maps but no data No more errors in apache error.log. I'll open different issues for other problems.
Ok you need to add a little more to the installation notes. You need to be clear that everything needs copying to the website root folder and that ownership of the files needs changing to www-data:www-data.

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

Thanks for the information! Looks like there are a number of sore spots I need to fix in the installation process.

  • The lantern build engine is cloned automagically by the script into a git submodule.
  • Ah, yeah. I should probably include web server instructions. Basically, the entire root directory should be served by the web server with PHP enabled, except the data folder (which should be created on first page load)
  • Indeed, PHP 7 or above is required. I'm surprised that it's not the default on your system, actually. I'll update the readme with that too.
  • That error is the null coalesce operator. It's only available PHP 7+.
  • Try looking at settings.default.toml for an idea as to what you can enter into the custom settings file in the data folder.

I'll update the README with these additional instructions.

Thanks for helping test the installation process, @BNNorman!

from air-quality-web.

sbrl avatar sbrl commented on May 26, 2024

README updated.

from air-quality-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.