Merge pull request #12056 from backstage/rugvip/gyp

create-app: added explicit node-gyp dependency
This commit is contained in:
Johan Haals
2022-06-16 11:46:27 +02:00
committed by GitHub
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
---
'@backstage/create-app': patch
---
Added an explicit `node-gyp` dependency to the root `package.json`. This is to work around a bug in older versions of `node-gyp` that causes Python execution to fail on macOS.
You can add this workaround to your existing project by adding `node-gyp` as a `devDependency` in your root `package.json` file:
```diff
"devDependencies": {
+ "node-gyp": "^9.0.0"
},
```
@@ -35,7 +35,8 @@
"concurrently": "^6.0.0",
"lerna": "^4.0.0",
"prettier": "^2.3.2",
"typescript": "~4.6.4"
"typescript": "~4.6.4",
"node-gyp": "^9.0.0"
},
"resolutions": {
"@types/react": "^17",