ENOENT when installing the JS backend
Kaiepi opened this issue · comments
When I $ ./Configure --prefix=$HOME/.raku --backends=moar,js
on master, the JS backend fails to build due to an error related to one of its dependencies. I narrowed the error down to the js-install
rule:
bastille% gmake js-install
'perl' tools/build/npm-install-or-link.pl . src/vm/js/nqp-runtime nqp-runtime
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
+ nqp-runtime@0.38.0
updated 1 package and audited 46 packages in 3.151s
found 0 vulnerabilities
+++ Preparing MOAR build directories
++++++ Building MOAR backend
+++ Installing MOAR stage 2 files locally
+++ Compiling NQPP5QRegex.moarvm
mkdir -p -- /home/morfent/.raku/bin
mkdir -p -- /home/morfent/.raku/share/nqp/lib
mkdir -p -- /home/morfent/.raku/share/nqp/lib/nqp-js-on-js
mkdir -p -- /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QAST
cp -- nqp-js-on-js/nqp-bootstrapped.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/nqp-bootstrapped.js
cp -- nqp-js-on-js/ModuleLoader.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/ModuleLoader.js
cp -- nqp-js-on-js/package.json /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/package.json
cp -- nqp-js-on-js/NQPCORE.setting.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPCORE.setting.js
cp -- nqp-js-on-js/NQPHLL.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPHLL.js
cp -- nqp-js-on-js/nqpmo.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/nqpmo.js
cp -- nqp-js-on-js/NQPP5QRegex.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPP5QRegex.js
cp -- nqp-js-on-js/NQPP6QRegex.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPP6QRegex.js
cp -- nqp-js-on-js/QAST/Compiler.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QAST/Compiler.js
cp -- nqp-js-on-js/QAST.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QAST.js
cp -- nqp-js-on-js/QASTNode.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QASTNode.js
cp -- nqp-js-on-js/QRegex.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QRegex.js
cp -- nqp-js-on-js/sprintf.js /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/sprintf.js
cp -- nqp-js-on-js/NQPCORE.setting.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPCORE.setting.js.map
cp -- nqp-js-on-js/NQPHLL.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPHLL.js.map
cp -- nqp-js-on-js/nqpmo.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/nqpmo.js.map
cp -- nqp-js-on-js/NQPP5QRegex.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPP5QRegex.js.map
cp -- nqp-js-on-js/NQPP6QRegex.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/NQPP6QRegex.js.map
cp -- nqp-js-on-js/QAST/Compiler.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QAST/Compiler.js.map
cp -- nqp-js-on-js/QAST.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QAST.js.map
cp -- nqp-js-on-js/QASTNode.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QASTNode.js.map
cp -- nqp-js-on-js/QRegex.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/QRegex.js.map
cp -- nqp-js-on-js/sprintf.js.map /home/morfent/.raku/share/nqp/lib/nqp-js-on-js/sprintf.js.map
'perl' /home/morfent/Documents/raku/nqp/tools/build/npm-install-or-link.pl /home/morfent/.raku/share/nqp/lib/nqp-js-on-js src/vm/js/nqp-runtime nqp-runtime
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN checkPermissions Missing write access to /home/morfent/Documents/raku/nqp/src/vm/js/nqp-runtime/node_modules/ref-napi/node_modules/node-addon-api
npm WARN checkPermissions Missing write access to /home/morfent/Documents/raku/nqp/src/vm/js/nqp-runtime/node_modules/ref-napi/node_modules
npm WARN nqp-js-on-js@0.30.0 No description
npm WARN nqp-js-on-js@0.30.0 No repository field.
npm WARN nqp-js-on-js@0.30.0 No license field.
npm ERR! code ENOENT
npm ERR! syscall access
npm ERR! path /home/morfent/Documents/raku/nqp/src/vm/js/nqp-runtime/node_modules/ref-napi/node_modules/node-addon-api
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, access '/home/morfent/Documents/raku/nqp/src/vm/js/nqp-runtime/node_modules/ref-napi/node_modules/node-addon-api'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/morfent/.npm/_logs/2021-02-28T02_19_17_324Z-debug.log
=== SORRY! === `npm install /home/morfent/Documents/raku/nqp/src/vm/js/nqp-runtime` failed with exit code 65024 (254)
gmake: *** [Makefile:799: js-install] Error 254
This is being run on OpenBSD -current. $ uname -a
output is OpenBSD bastille.kennel.qt 6.9 GENERIC.MP#349 amd64
.
Nuking src/vm/js/nqp-runtime/node_modules
fixed this. make distclean
would also work...