oguilleux / webpack-gulp-wordpress-starter-theme

A WordPress theme with Webpack & Gulp
153 stars 30 forks source link

Running npm install gives Error: not supported #760

Closed no-liver closed 1 year ago

no-liver commented 1 year ago

Thank you for the Gulp theme! Getting an error when trying to run npm install

npm 6.13.4 node v12.16.1

Error: Not supported
    at eval (eval at <anonymous> (..../node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js:10:15), <anonymous>:1:1)
    at requireOrImport (..../node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js:24:7)
    at execute (..../node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:37:3)
    at Liftoff.handleArguments (..../node_modules/gulp/node_modules/gulp-cli/index.js:211:24)
    at Liftoff.execute (..../node_modules/liftoff/index.js:201:12)
    at module.exports (..../node_modules/flagged-respawn/index.js:51:3)
    at Liftoff.<anonymous> (..../node_modules/liftoff/index.js:191:5)
    at ..../node_modules/liftoff/index.js:149:9
    at ..../node_modules/v8flags/index.js:162:14
    at ..../node_modules/v8flags/index.js:41:14

Any ideas what could be wrong here? Likely seems likely a versioning issue with some package but no idea currently how approach with this error. Any advice?

oguilleux commented 1 year ago

Hi @rulloliver, try updating your versions of npm and node. I think it's what causes the errors.

oguilleux commented 1 year ago

careful I just saw that support for node v12 is over.

no-liver commented 1 year ago

@oguilleux Thanks for this - played around got it working with updated versions. Although regarding warnings & errors (I'm a bit of monk i guess although it works): - Deprecation Warning: $weight: Passing a number without unit % (100) is deprecated.

Thanks for the quick discussion!

oguilleux commented 1 year ago

Yes it's a known issue and it will be fixed in Bootstrap v5.3.0 - meanwhile I'll downgrade sass

oguilleux commented 1 year ago

I don't see the

- ✖ 35 problems (34 errors, 1 warning)
  21 errors and 0 warnings potentially fixable with the `--fix` option.

I only have 1 warning when installing the project and it's the console.log I left for demo purposes.