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 attempting to compile #934

Open
francescoBLT opened this issue Oct 22, 2024 · 1 comment
Open

Error attempting to compile #934

francescoBLT opened this issue Oct 22, 2024 · 1 comment

Comments

@francescoBLT
Copy link

Hi
may be I'm not so skilled just now, but I attempt to compile in order to contribute. I'm new to javascript , my exeperience is mainly in C++ and oo programming (more than 15 years) under windows. I followed the instruction for contributing:

git clone https://github.com/namespace-ee/react-calendar-timeline.git react-calendar-timeline
cd react-calendar-timeline
yarn
yarn start

I cloned the project, entered in the dir (first two instructions) but when I issue yarn command the result is:

C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:23284
throw new UsageError(This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field);
^

UsageError: This project is configured to use npm because c:\Projects\JSON\react-calendar-timeline\package.json has a "packageManager" field
at Engine.findProjectSpec (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:23284:21)
at async Engine.executePackageManagerRequest (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:23314:24)
at async Object.runMain (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:24007:5) {
clipanion: { type: 'usage' }
}

Node.js v20.16.0

How can I overcome ?
Regards

@Remco4EF
Copy link
Contributor

The error already says it :-)
"UsageError: This project is configured to use npm because c:\Projects\JSON\react-calendar-timeline\package.json has a 'packagemanager' field"

Instead of yarn, use npm.
so checkout, run npm install and run npm run build or

cd into demos dir, run npm install again and run npm run dev

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

No branches or pull requests

2 participants