diff --git a/package.json b/package.json
index 62defb31e7f7e2f06e7f2c72f615ee2fba4419ce..82db49462987f54c46827cf10c6234d7902dff79 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",