https://pulumi.com logo
#general
Title
# general
c

cold-train-5848

11/04/2018, 10:59 PM
I'm trying to run the version from
master
, when I do
pulumi new
it creates a
package.json
, which contains the following lines which point to the latest stable version:
Copy code
"dependencies": {
        "@pulumi/pulumi": "latest",
        "@pulumi/kubernetes": "latest"
    }
After I update
package.json
to point to the latest master version as below:
Copy code
"dependencies": {
        "@pulumi/pulumi": "<https://github.com/pulumi/pulumi.git>",
        "@pulumi/kubernetes": "<https://github.com/pulumi/pulumi-kubernetes.git>"
    }
And I run
yarn install
I'm getting the following error when doing `pulumi up`:
Copy code
error: It looks like the Pulumi SDK has not been installed. Have you run npm install or yarn install?
 
error: failed to load language plugin nodejs: could not read plugin [/home/shai/go/bin/pulumi-language-nodejs] stdout: EOF
w

white-balloon-205

11/04/2018, 11:01 PM
The NPM packages are not at the root of these repos, and may not be possible to reference directly from Git as they are built as part of the build process. I would suggest that you build locally and then use ‘yarn link’ to pull into your project. This is what we do for most of our development.
In particular the
@pulumi/pulumi
NPM module sources are at https://github.com/pulumi/pulumi/tree/master/sdk/nodejs, but the details like version and preinstall steps are inserted by the build process (
make
in that folder).
c

cold-train-5848

11/04/2018, 11:43 PM
What's the exact yarn link command I need to run, and in what directory do I run it?
w

white-balloon-205

11/05/2018, 3:35 AM
The
make build
should set up the links, and then from your app just do
yarn link <@UB8C33JJG>/pulumi
.
c

cold-train-5848

11/05/2018, 9:09 AM
How do I link the docker package?
Copy code
$ yarn link @pulumi/pulumi
success Using linked package for "@pulumi/pulumi".
$ yarn link @pulumi/docker
error No registered package found called "@pulumi/docker".
When I try to run
make
on the
pulumi/pulumi-docker
repo I'm getting errors:
Copy code
docker.ts:18:32 - error TS2307: Cannot find module 'child_process'.
docker.ts:19:25 - error TS2307: Cannot find module 'semver'.
docker.ts:556:27 - error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i @types/node`.
w

white-balloon-205

11/05/2018, 3:38 PM
On the first question, that package is built out of Pulumi/pulumi-docker, which isn’t looks like you found. On the second, I suspect you need to
make ensure
prior to
make
to install dependencies.
c

cold-train-5848

11/05/2018, 5:18 PM
Got it working now, thanks!
🎉 2