安装 0.1.2 版本 执行 postinstall script 出错,生产环境应该移除
Closed this issue · 1 comments
Describe the bug
{"time":1723710958985,"pid":34232,"level":"error","name":"pnpm","code":"ELIFECYCLE","errno":"ENOENT","syscall":"spawn","file":"sh","pkgid":"postcss-px-conversion@0.1.2","stage":"postinstall","script":"npm run build","pkgname":"postcss-px-conversion","name":"pnpm","err":{"name":"pnpm","message":"postcss-px-conversion@0.1.2 postinstall: npm run build
\nspawn ENOENT","code":"ELIFECYCLE","stack":"pnpm: postcss-px-conversion@0.1.2 postinstall: npm run build
\nspawn ENOENT\n at ChildProcess. (/usr/local/lib/node_modules/pnpm/dist/pnpm.cjs:82681:22)\n at ChildProcess.emit (node:events:519:28)\n at maybeClose (node:internal/child_process:1105:16)\n at Socket. (node:internal/child_process:457:11)\n at Socket.emit (node:events:519:28)\n at Pipe. (node:net:339:12)"}}
Reproduction
pnpm i postcss-px-conversion
System Info
node.js
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Thanks, version 0.1.3 fixes this issue!