yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
948 stars 91 forks source link

Npm install fails #208

Closed rdaud closed 10 months ago

rdaud commented 10 months ago

Branch: main Node: v21.2.0 NPM: 10.2.5

I run npm install and a couple of different Warn and Error messages are thrown. Running npm install using "--force" doesn't work as well.

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: stylelint-order@5.0.0
npm WARN Found: stylelint@16.0.0
npm WARN node_modules/stylelint
npm WARN   dev stylelint@"16.0.0" from the root project
npm WARN   5 more (stylelint-config-idiomatic-order, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer stylelint@">=16" from stylelint-config-yuanqing@0.0.5
npm WARN node_modules/stylelint-config-yuanqing
npm WARN   dev stylelint-config-yuanqing@"0.0.5" from the root project
npm WARN   2 more (@create-figma-plugin/ui, website)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: stylelint-order@5.0.0
npm WARN Found: stylelint@16.0.0
npm WARN node_modules/stylelint
npm WARN   dev stylelint@"16.0.0" from the root project
npm WARN   5 more (stylelint-config-idiomatic-order, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer stylelint@">=16" from stylelint-config-yuanqing@0.0.5
npm WARN node_modules/stylelint-config-yuanqing
npm WARN   dev stylelint-config-yuanqing@"0.0.5" from the root project
npm WARN   2 more (@create-figma-plugin/ui, website)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: stylelint-order@5.0.0
npm WARN Found: stylelint@16.0.0
npm WARN node_modules/stylelint
npm WARN   dev stylelint@"16.0.0" from the root project
npm WARN   5 more (stylelint-config-idiomatic-order, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer stylelint@">=16" from stylelint-config-yuanqing@0.0.5
npm WARN node_modules/stylelint-config-yuanqing
npm WARN   dev stylelint-config-yuanqing@"0.0.5" from the root project
npm WARN   2 more (@create-figma-plugin/ui, website)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: stylelint-order@5.0.0
npm WARN Found: peer stylelint@"^14.0.0" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer stylelint@"^14.0.0" from the root project
npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path /Users/rodrigodaudskeff/.npm/_cacache/content-v2/sha512/e7/2d
npm ERR! errno EEXIST
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/stylelint: EACCES: permission denied, mkdir '/Users/rodrigodaudskeff/.npm/_cacache/content-v2/sha512/e7/2d'
npm ERR! File exists: /Users/rodrigodaudskeff/.npm/_cacache/content-v2/sha512/e7/2d
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
yuanqing commented 10 months ago

Thanks for reporting this! I’ve pushed a fix but you’ll need to use the next branch, not main

$ node -v
v20.10.0
$ npm -v
10.2.5
$ git clone https://github.com/yuanqing/create-figma-plugin
$ cd create-figma-plugin
$ git checkout --track origin/next
$ npm install