Is it any npm option exist to disable postinstall script while installing package? Or for rewriting any field from package.json?
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- Failed at the electron@1.8.2 postinstall script
- How to reimport module with ES6 import
- Webpack getting started, import error
相关文章
- node连接远程oracle报错
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
- Get file created date in node
To do this for your own library, I recommend something simple like:
then do your npm install with:
It's not possible to disable only
postinstall
scripts. However, you can disable all scripts using:As delbertooo mentionned in the comments, this also disables the scripts of the dependencies.