kirklin / postcss-px-conversion

A plugin for PostCSS that generates viewport units (vw, vh, vmin, vmax) from pixel units. The best choice to create a scalable interface on different displays by one design size.
https://postcss-px-conversion.vercel.app
MIT License
26 stars 2 forks source link

安装 0.1.2 版本 执行 postinstall script 出错,生产环境应该移除 #6

Closed linhuibin98 closed 3 weeks ago

linhuibin98 commented 1 month ago

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

kirklin commented 4 weeks ago

Thanks, version 0.1.3 fixes this issue!