elegantthemes / create-divi-extension

MIT License
186 stars 59 forks source link

npx create-divi-extension not working #530

Open madegilangaditya opened 2 years ago

madegilangaditya commented 2 years ago

Problem Description

The build fails when I run npx create-divi-extension test-extension

Steps To Reproduce

  1. Use Mac os 11.5.2
  2. I use Xampp for local wordpress
  3. Node version 16.13.1
  4. Yarn version 3.1.1

Screenshot and/or gif

Creating a new Divi extension in /Applications/XAMPP/xamppfiles/htdocs/testing/wp-content/plugins/test-extension.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and divi-scripts...

➤ YN0000: ┌ Resolution step
➤ YN0061: │ babel-eslint@npm:8.2.2 is deprecated: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
➤ YN0061: │ fsevents@npm:1.1.3 is deprecated: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
➤ YN0061: │ html-webpack-plugin@npm:2.30.1 is deprecated: out of support
➤ YN0013: │ grunt-po2mo@https://github.com/elegantthemes/grunt-po2mo.git#commit=26eca7c892db50837b58fdcf3771c5eb331a2ead can't be found in the cache and wil
➤ YN0061: │ extract-text-webpack-plugin@npm:3.0.2 is deprecated: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
➤ YN0061: │ eslint-loader@npm:1.9.0 is deprecated: This loader has been deprecated. Please use eslint-webpack-plugin
➤ YN0061: │ core-js@npm:2.6.12 is deprecated: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
➤ YN0032: │ nan@npm:2.15.0: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ node-pre-gyp@npm:0.6.39 is deprecated: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
➤ YN0061: │ browserslist@npm:2.11.3 is deprecated: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
➤ YN0061: │ browserslist@npm:1.7.7 is deprecated: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
➤ YN0061: │ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ request@npm:2.81.0 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ svgo@npm:1.3.2 is deprecated: This SVGO version is no longer supported. Upgrade to v2.x.x.
➤ YN0032: │ iltorb@npm:2.4.5: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ iltorb@npm:2.4.5 is deprecated: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
➤ YN0061: │ chokidar@npm:2.1.8 is deprecated: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ fsevents@npm:1.2.13 is deprecated: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
➤ YN0061: │ uglify-es@npm:3.3.10 is deprecated: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
➤ YN0061: │ svgo@npm:0.7.2 is deprecated: This SVGO version is no longer supported. Upgrade to v2.x.x.
➤ YN0061: │ tar@npm:2.2.2 is deprecated: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
➤ YN0061: │ hawk@npm:3.1.3 is deprecated: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
➤ YN0061: │ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
➤ YN0061: │ har-validator@npm:4.2.1 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.4.0 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
➤ YN0061: │ circular-json@npm:0.3.3 is deprecated: CircularJSON is in maintenance only, flatted is its successor.
➤ YN0061: │ boom@npm:2.10.1 is deprecated: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
➤ YN0061: │ querystring@npm:0.2.0 is deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
➤ YN0061: │ hoek@npm:2.16.3 is deprecated: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
➤ YN0061: │ cryptiles@npm:2.0.5 is deprecated: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
➤ YN0061: │ sntp@npm:1.0.9 is deprecated: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
➤ YN0061: │ sane@npm:4.1.0 is deprecated: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
➤ YN0032: │ evp_bytestokey@npm:1.0.3: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ flatten@npm:1.0.3 is deprecated: flatten is deprecated in favor of utility frameworks such as lodash.
➤ YN0061: │ request-promise-native@npm:1.0.9 is deprecated: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
➤ YN0061: │ urix@npm:0.1.0 is deprecated: Please see https://github.com/lydell/urix#deprecated
➤ YN0061: │ resolve-url@npm:0.2.1 is deprecated: https://github.com/lydell/resolve-url#deprecated
➤ YN0002: │ babel-plugin-transform-dynamic-import@npm:2.0.0 doesn't provide @babel/core (pc1ef2), requested by @babel/plugin-syntax-dynamic-import
➤ YN0060: │ divi-scripts@npm:1.0.2-rc.0 provides @babel/core (p65604) with version 7.0.0-beta.42, which doesn't satisfy what babel-plugin-named-asset-import requests
➤ YN0060: │ divi-scripts@npm:1.0.2-rc.0 provides grunt (p1dbcd) with version 1.0.2, which doesn't satisfy what grunt-po2mo requests
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 21s 389ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ yargs@npm:15.4.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:3.10.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:6.6.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:8.0.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ zip-stream@npm:1.2.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 2s 559ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
➤ YN0007: │ fsevents@patch:fsevents@npm%3A1.1.3#~builtin<compat/fsevents>::version=1.1.3&hash=18f3a7 must be built because it never has been before or the last one failed
➤ YN0007: │ iltorb@npm:2.4.5 must be built because it never has been before or the last one failed
➤ YN0007: │ node-sass@npm:4.14.1 must be built because it never has been before or the last one failed
➤ YN0007: │ fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=18f3a7 must be built because it never has been before or the last one failed
➤ YN0007: │ uglifyjs-webpack-plugin@npm:0.4.6 [14eae] must be built because it never has been before or the last one failed
➤ YN0009: │ fsevents@patch:fsevents@npm%3A1.1.3#~builtin<compat/fsevents>::version=1.1.3&hash=18f3a7 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/th/kyr9_pj12g3c6dblmp7blkyc0000gn/T/xfs-b86cb120/build.log)
➤ YN0009: │ node-sass@npm:4.14.1 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/th/kyr9_pj12g3c6dblmp7blkyc0000gn/T/xfs-2c6c4ac5/build.log)
➤ YN0000: └ Completed in 49s 333ms
➤ YN0000: Failed with errors in 1m 14s

Aborting installation.
  yarnpkg add --exact react react-dom divi-scripts --cwd /Applications/XAMPP/xamppfiles/htdocs/testing/wp-content/plugins/test-extension has failed.

Deleting generated file... package.json
Done.

Any suggestion will be very appreciated

Abd-Ur-Rehman commented 2 years ago

@madegilangaditya I think you are having an issue like this one. https://github.com/elegantthemes/create-divi-extension/issues/533#issuecomment-1028957637

madegilangaditya commented 2 years ago

@madegilangaditya I think you are having an issue like this one. #533 (comment)

Thanks man will try downgrade the node version