在react-scripts package.json中使用节点模块

问题描述

package.json

{
   "scripts": {
        "postinstall": "npm i print-message && /node_modules/print-message([ 'Hello','It's the huge world' ])"
      }
}

或者可以使用它来工作

{
   "scripts": {
        "postinstall": "(require('print-message')([ 'Hello','It's the huge world' ]))"
      }
}

我希望安装完成后在控制台中发布漂亮的消息

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)