Hey all, I am trying to get started with policy t...
# getting-started
b
Hey all, I am trying to get started with policy testing in Pulumi. I have the following package.json configured:
Copy code
{
  "name": "pac-ts-eks-tests",
  "version": "0.0.1",
  "dependencies": {
    "@pulumi/policy": "latest",
    "@pulumi/pulumi": "^1.0.0"
  },
  "devDependencies": {
    "@types/node": "^8.0.0"
  }
}
On a MacBook Pro M1 ARM64. Is Pulumi policy framework not supported on this laptop? These are one of the first couple of errors I see:
yarn install
[...]
Copy code
[1/4] ⠁ protobufjs
[2/4] ⠁ deasync
[3/4] ⠁ grpc
error /Users/brian/bank-of-anthos/do/pulumi/tests/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments:
Directory: /Users/brian/bank-of-anthos/do/pulumi/tests/node_modules/deasync
Output:
node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'rebuild' ]
}
Any suggestions? Going to open an issue if nothing immediate here.
p
if i remember correctly, there's a problem with node-gyp when you have python 3.11 installed, maybe that's the problem you have ? in this case you need to downgrade python to 3.10 or something