yfm-transform
yfm-transform copied to clipboard
Can't install the package because of postinstall script
Package version
4.45.5
NPM version
10.8.2
Platform
Windows 10
What steps will reproduce the bug?
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.