diff --git a/package.json b/package.json
index 4e0761f8e3b796cabfca30d3cc60abf2ee076779..0362dc25f27d7db5bfde1903dd0641d8237fc061 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
     "umd"
   ],
   "scripts": {
-    "build": "nwb build-react-component",
+    "build": "NODE_OPTIONS=--openssl-legacy-provider nwb build-react-component",
     "clean": "nwb clean-module",
     "lint": "eslint ./src ./__tests__",
     "prepublishOnly": "npm run build",