Closed julian-poidevin closed 4 years ago
I progressed into the issue by doing npm i -g npx
. Now having the following warning :
[compat] ==============================
mkdir -p src/static/js/compat
rm -f src/static/js/compat/*.min.js
npx babel -d src/static/js/compat src/static/js/*.js
npx: installed 1 in 3.72s
You have mistakenly installed the `babel` package, which is a no-op in Babel 6.
Babel's CLI commands have been moved from the `babel` package to the `babel-cli` package.
npm uninstall -g babel
npm install --save-dev babel-cli
After installing babel and compiling again, I have the following error :
[compat] ==============================
mkdir -p src/static/js/compat
rm -f src/static/js/compat/*.min.js
npx babel -d src/static/js/compat src/static/js/*.js
Couldn't find preset "@babel/preset-env" relative to directory "/root/repo/asm3"
Makefile:57: recipe for target 'compat' failed
make[1]: *** [compat] Error 1
make[1]: Leaving directory '/root/repo/asm3'
/root/repo/asm3
is the path where my asm3 repo is cloned
Hi Julian, npx is part of npm and should install with it? Installing the Debian nodejs package should include it.
You've installed Babel 6, but we depend on Babel 7 and some other packages. The package.json and package-lock.json files have the exact dependencies and it should just be a case of running "npm install" in the root of the source to create node_modules and install everything. I will add that to make deps.
just to make sure, remove any changes to package*.json in your local env/branch and delete the node_modules folder. Then run npm install to get the deps.
Oh, I though it was a deps missing in the Makefile... I know the issues are not supposed to be used to ask for support, I'm sorry.
I'm also surprised but seems npx what not installed along npm on my server (Ubuntu)... Should you update the Makefile to force the install ?
After following your instructions everything runs smoothly. I was not familiar with npm.
Thanks a lot !
After re-syncing my local ASM3 repo with yours, I'm having the following errors when building.
I tried to to a
make deps
but no luck.For info I'm running
node v8.10.0
.