This message was deleted.
# general
s
This message was deleted.
w
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
What's the exact yarn link command I need to run, and in what directory do I run it?
w
The
make build
should set up the links, and then from your app just do
yarn link <@UB8C33JJG>/pulumi
.
c
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
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
Got it working now, thanks!
🎉 2