Skip to content

Cannot setup dev environment #462

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

Closed
bezin opened this issue Jan 25, 2023 · 3 comments
Closed

Cannot setup dev environment #462

bezin opened this issue Jan 25, 2023 · 3 comments

Comments

@bezin
Copy link

bezin commented Jan 25, 2023

Hi there,

I just wanted to contribute to tweakpane, I cannot get the dev environment to work.

I run npm install and npm complains, that it cannot find a version of tweakpane/core. I selected the most recent one.

After that I run npm run setup and setup:core fails with the following error message:

71 verbose stack TypeError: Cannot set properties of null (setting 'dev')
71 verbose stack     at calcDepFlagsStep (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:34:21)
71 verbose stack     at visit (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:12:20)
71 verbose stack     at visitNode (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:58:25)
71 verbose stack     at next (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:44:19)
71 verbose stack     at depth (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:83:10)
71 verbose stack     at depth (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/treeverse/lib/depth.js:27:12)
71 verbose stack     at calcDepFlags (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:10:15)
71 verbose stack     at Arborist.[copyIdealToActual] (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1507:7)
71 verbose stack     at Arborist.reify (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:158:35)
71 verbose stack     at async Install.exec (/home/benedict/.nvm/versions/node/v16.17.1/lib/node_modules/npm/lib/commands/install.js:145:5)

I tried it with Node 16 and 18 (NPM 8). Which version are you using?

Best
Benedict

@cocopon
Copy link
Owner

cocopon commented Jan 25, 2023

Thank you for using Tweakpane! Here is the result of my development environment:

% node -v                                                                                                           [main]
v16.1.0

% npm -v                                                                                                            [main]
7.11.2

@bezin
Copy link
Author

bezin commented Jan 25, 2023

Ok, apparently some kind of issue with NPM. It works, when I use npx to specify a npm version and then run the commands in each package manually:

cd packages/core
npx [email protected] install && npx [email protected] run build 
cd ../tweakpane
npx [email protected] install && npx [email protected] run build 

@bezin bezin closed this as completed Jan 25, 2023
@cocopon
Copy link
Owner

cocopon commented Jan 25, 2023

I found an issue that may be related to this problem. It seems to occur with npm workspaces, but I cannot find a solution...:
npm/cli#3847

Anyway I'm glad it went well.

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