Speed Optimization Module Setup
I try to enable JS Optimization and when I run the command it tells me to do
node_modules/requirejs/bin/r.js -o pub/static/advancedbundling_build.js baseUrl=pub/static/frontend/Pearl/weltpixel_custom/es_ES_tmp dir=pub/static/frontend/Pearl/weltpixel_custom/es_ES
I am getting following error message
-bash: node_modules/requirejs/bin/r.js: No such file or directory
I installed requirejs and I am stuck on that step. Our server runs on Ubuntu 18.04 and everything else works fine but I cant make this happen. Magento Version is 2.3.1
Anyone has a similar problem and/or solution for it.
Thanks in advance for the help
KR
-
Hello,
if you have NODEJS and REQUIRE.JS installed, then just see if you have the correct path to r.js and then fix the path in the command: node_modules/requirejs/bin/r.js.I have forgotten one important thing - before running the optimization command, you must not have minimized js files (minify js files set "NO").
-
i try to activate it and i run the command
node_modules/requirejs/bin/r.js -o pub/static/advancedbundling_build.js baseUrl=pub/static/frontend/Pearl/weltpixel_custom/el_GR_tmp dir=pub/static/frontend/Pearl/weltpixel_custom/el_GR
the result is
Error: Error: ERROR: module path does not exist: public_html/pub/static/frontend/Pearl/weltpixel_custom/el_GR_tmp/requirejs/require.js for module named: requirejs/require. Path is relative to: /public_html
at /public_html/node_modules/requirejs/bin/r.js:28447:35any idea?
ps. i have put the js file to /public_html/app/design/frontend/Pearl/weltpixel/WeltPixel_SpeedOptimization/lib/advancedbundling_build.js
the directory WeltPixel_SpeedOptimization/lib/ didn't exist. i create it
-
node_modules/requirejs/bin/r.js -o pub/static/advancedbundling_build.js baseUrl=pub/static/frontend/Pearl/weltpixel_custom/en_US_tmp dir=pub/static/frontend/Pearl/weltpixel_custom/en_US
I am getting following error message when I run the above command via SSH access of my server.
-bash: node_modules/requirejs/bin/r.js: No such file or directory
Please help anyone
Please sign in to leave a comment.
Comments
5 comments