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

Can't install the package because of postinstall script #636

Open
myxious opened this issue Feb 10, 2025 · 0 comments
Open

Can't install the package because of postinstall script #636

myxious opened this issue Feb 10, 2025 · 0 comments

Comments

@myxious
Copy link

myxious commented Feb 10, 2025

Package version

4.45.5

NPM version

10.8.2

Platform

Windows 10

What steps will reproduce the bug?

  1. npm i @diplodoc/transform

Expected result 🟩:

added 64 packages
found 0 vulnerabilities

Actual result 🟥:

npm warn ERESOLVE overriding peer dependency
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\@diplodoc\\transform\\node_modules',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\git\infra-code\js\yfm-demo\node_modules\@diplodoc\transform\node_modules\@diplodoc\tabs-extension\build\runtime'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\@diplodoc\\transform\\node_modules\\@diplodoc\\tabs-extension\\build\\runtime'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\markdown-it-meta',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\git\infra-code\js\yfm-demo\node_modules\markdown-it-meta\node_modules\js-yaml'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\markdown-it-meta\\node_modules\\js-yaml'
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\@diplodoc\\transform',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\git\infra-code\js\yfm-demo\node_modules\@diplodoc\transform\node_modules\@diplodoc\tabs-extension\build\plugin'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\git\\infra-code\\js\\yfm-demo\\node_modules\\@diplodoc\\transform\\node_modules\\@diplodoc\\tabs-extension\\build\\plugin'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\git\infra-code\js\yfm-demo\node_modules\@diplodoc\transform
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c cd playground && npm ci --ignore-scripts || true
npm error The system cannot find the path specified.

Comment

What is the point of postinstall script? Why do I need playground folder in my code?
When I install older version of the package or use npm i @diplodoc/transform --ignore-scripts everything is OK. But I'm not sure that --ignore-scripts is good for CI/CD pipeline.

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

1 participant