https://pulumi.com logo
#typescript
Title
# typescript
f

famous-bear-66383

04/30/2020, 12:22 PM
Given a project that spins up a simple
gke cluster
, how to quickly upgrade it to Pulumi 2 ? The following steps didn’t work out for me: • delete node_modules directory and package-lock.json • brew upgrade pulumi to install the new cli • npm install @pulumi/pulumi@^2.0.0 • pulumi up Error:
Copy code
Previewing update (project1):
     Type                 Name                           Plan     Info
     pulumi:pulumi:Stack  project1           1 error
 
Diagnostics:
  pulumi:pulumi:Stack (project1):
    error: Running program '/Users/<user>/<company>/<project1>' failed with an unhandled exception:
    Error: Could not locate the bindings file. Tried:
     → /Users/<user>/<company>/<project1>/node_modules/deasync/build/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/build/Debug/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/build/Release/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/out/Debug/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/Debug/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/out/Release/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/Release/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/build/default/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/compiled/14.0.0/darwin/x64/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/addon-build/release/install-root/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/addon-build/debug/install-root/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/addon-build/default/install-root/deasync.node
     → /Users/<user>/<company>/<project1>/node_modules/deasync/lib/binding/node-v83-darwin-x64/deasync.node
        at bindings (/Users/<user>/<company>/<project1>/node_modules/bindings/bindings.js:126:9)
        at Object.<anonymous> (/Users/<user>/<company>/<project1>/node_modules/deasync/index.js:30:31)
        at Module._compile (internal/modules/cjs/loader.js:1185:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
        at Module.load (internal/modules/cjs/loader.js:1034:32)
        at Function.Module._load (internal/modules/cjs/loader.js:923:14)
        at Module.require (internal/modules/cjs/loader.js:1074:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object.<anonymous> (/Users/<user>/<company>/<project1>/node_modules/@pulumi/kubernetes/node_modules/@pulumi/pulumi/utils.js:16:17)
        at Module._compile (internal/modules/cjs/loader.js:1185:30)
Is there others to steps to make a successful migration ?
w

white-balloon-205

05/02/2020, 3:27 AM
You most likely need to update other packages on your deployment. Check your package.json and ensure all packages are using 2.0 versions and then runt
npm install
to make sure all dependencies are up to date.