create-app: added explicit node-gyp dependency

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-06-15 19:17:16 +02:00
parent 9689d5ecde
commit bc87604c26
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",