diplodoc-platform / diplodoc-platform/transform

Can't install the package because of postinstall script

Open
#636 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
69
Forks
59
Avg merge
1d 21h
Merged PRs (30d)
6

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.