Node.js 在npm中使用安装后脚本

Node.js 在npm中使用安装后脚本,node.js,npm,gulp,bower,Node.js,Npm,Gulp,Bower,我在packages.json中为postinstall使用以下内容 "scripts": { "start": "node server.js", "postinstall": "bower install --config.interactive=false && gulp build" }, 但是,在某些环境中不支持&&。如何在postinstall.js脚本中放置等效命令,以便同时执行这两个命令

我在packages.json中为postinstall使用以下内容

  "scripts": {
    "start": "node server.js",
    "postinstall": "bower install --config.interactive=false && gulp build"
  },
但是,在某些环境中不支持&&。如何在postinstall.js脚本中放置等效命令,以便同时执行这两个命令