npm · registry.npmjs.org
style-this-piece
Install Lifecycle Remote Or Exec: postinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\""
Why PkgRadar flagged 1.0.6
| Severity | Signal | Evidence |
|---|---|---|
| high | Install Lifecycle Remote Or Exec | postinstall="node -e \"const fs=require('fs');['react','react-dom'].forEach(p=>{const d=__dirname+'/node_modules/'+p;if(fs.existsSync(d)){fs.rmSync(d,{recursive:true});console.log('removed local '+p)}})\"" · package.json |
| medium | New Account With Lifecycle Hook | package first published 0 day(s) ago, 7 total version(s), has lifecycle hook · package.json |
Scanned versions
| Version | Verdict | Score | Scanned (UTC) |
|---|---|---|---|
1.0.7 | Low risk | 0 | 2026-06-09 |
1.0.6 | High risk | 35 | 2026-06-09 |
1.0.5 | High risk | 35 | 2026-06-09 |
1.0.4 | High risk | 35 | 2026-06-09 |
1.0.3 | High risk | 35 | 2026-06-09 |
1.0.2 | High risk | 35 | 2026-06-09 |
1.0.1 | High risk | 35 | 2026-06-09 |
1.0.0 | High risk | 35 | 2026-06-09 |
Block this in CI
pkgradar gate --ecosystem npm [email protected]