grunt-contrib-compress | Compress files and folders | Compression library
kandi X-RAY | grunt-contrib-compress Summary
kandi X-RAY | grunt-contrib-compress Summary
Compress files and folders.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create the destination file
grunt-contrib-compress Key Features
grunt-contrib-compress Examples and Code Snippets
Community Discussions
Trending Discussions on grunt-contrib-compress
QUESTION
I am attempting to add an additional functionality to the Divi WordPress theme. To do this, I am trying to build an extension to the theme and then a custom module within the extension. Elegant Themes, the developer of Divi, provides a tutorial for creating an extension and also for creating a module within the extension.
My development PC is running XAMPP over Ubuntu 20.04. I followed the tutorials and installed WordPress + Divi. I then installed Node.js by running sudo apt install node
and then installed npm by running sudo apt install npm
. Next, I ran sudo npm install -g yarn
to install Yarn.
The next step called for me to navigate to the plugins folder (/opt/lampp/htdocs/development/wp-content/plugins
) of my WordPress site and run npx create-divi-extension development-1
.
When I attempted to run this command, I received the following response:
...ANSWER
Answered 2021-Aug-20 at 11:46The issue was a result of not using the correct version of Node and not having the divi-scripts
package installed. The fix was simple really.
Step 1: In my home directory, I ran sudo n stable
and this updated Node to the latest LTS version.
Step 2: While still in my home directory, I ran npm install divi-scripts
. There were still some errors about deprecated dependencies (see here) but it worked.
Step 3: Navigated to my project folder and ran npx create-divi-extension development-1
and it ran successfully, but still with errors about deprecated dependencies for divi-scripts
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grunt-contrib-compress
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page