From e35c05d32ce1a829b39235ccdc984d3ff221cf06 Mon Sep 17 00:00:00 2001 From: littleforest <31119150+freeliujian@users.noreply.github.com> Date: Mon, 5 Dec 2022 11:18:41 +0800 Subject: [PATCH] chore: fix npm start in window (#39252) * Feat: Added instructions for the win environment~ * feat: Use cross-env to set the environment variables --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b001dc8942..6f30a33462 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "site": "dumi build && cp .surgeignore _site", "sort": "npx sort-package-json", "sort-api": "antd-tools run sort-api-table", - "start": "PORT=8001 dumi dev", + "start": "cross-env PORT=8001 dumi dev", "test": "jest --config .jest.js --cache=false", "test:update": "jest --config .jest.js --cache=false -u", "test-all": "sh -e ./scripts/test-all.sh",