We have two versions of the package: installed in node_modules and defined in package.json. After change version and push changes to SCM, other developers should be notified on the build process. How to notify if versions are mismatched? We use webpack for building our application and webpack-notifier for display errors and warnings.
You could dry-run
the npm install
to list all the dependencies that have to be installed to run with the newest version:
echo "The newest version runs with these additional packages:";
npm install --dry-run
您可以使用检查依赖项 ,并将其插入为prestart,prebuild,prewatever脚本,因此,当dev运行npm build
此cli将运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.