Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error this.useTaskRunner.toLowerCase is not a function #28

Open
ghost opened this issue Nov 9, 2022 · 3 comments
Open

Error this.useTaskRunner.toLowerCase is not a function #28

ghost opened this issue Nov 9, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 9, 2022

Hello. When trying to create a theme through this tool, I encounter the error `this.use TaskRunner.toLowerCase is not a function'. What could be the problem and how to solve it?

P.S. I don't speak English well and use Google Translate. I'm sorry if the question was distorted by the translator.

Снимок экрана от 2022-11-09 11-19-38.png

@pascalduez
Copy link
Member

Hello,
what version of Yeoman are you using?
Maybe there's an incompatibility with recent versions, things are getting dusty in here...
You could try with Yeoman 1.x

@ghost
Copy link
Author

ghost commented Nov 10, 2022

Hello, what version of Yeoman are you using? Maybe there's an incompatibility with recent versions, things are getting dusty in here... You could try with Yeoman 1.x

Hello, I have the Yeoman 4.3.1 version installed. Now I will try to install the old version. Thanks for the tip.

Don't working with Yo 1.2.1:

fs.js:47
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:47:5
    at req_ (/usr/local/lib/node_modules/yo/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/usr/local/lib/node_modules/yo/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/update-notifier/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)

@pascalduez
Copy link
Member

Humm now it must be the Node.js version probably.
Try with lower versions? Maybe 10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant