bored-monitor-99026
07/09/2021, 7:16 AMType Name Plan Info
+ pulumi:pulumi:Stack simple-test create 1 error
Diagnostics:
pulumi:pulumi:Stack (simple-test):
error: Running program '/home/tingkai/pulumi/pulumi-oneandone/examples/simple' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
../../sdk/nodejs/index.ts(4,25): error TS2307: Cannot find module '@pulumi/pulumi'.
at createTSError (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Object.require.extensions.<computed> [as .ts] (/home/tingkai/pulumi/pulumi-oneandone/examples/simple/node_modules/ts-node/src/index.ts:442:12)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Function.Module._load (node:internal/modules/cjs/loader:828:14)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:93:18)
how could i fix this?tall-librarian-49374
07/09/2021, 7:28 AMmake
file: https://github.com/mikhailshilkov/pulumi-provider-boilerplatebuild_nodejs
and install_nodejs_sdk
npm install
?broad-dog-22463
07/09/2021, 12:31 PMtall-librarian-49374
07/09/2021, 12:31 PMbored-monitor-99026
07/09/2021, 6:53 PMnpm install
as following the readme. lm try the boilerplate you linked. thanks very much for helping!...
cd sdk/nodejs/ && \
yarn install && \
node --max-old-space-size=4096 /usr/local/bin/tsc --diagnostics && \
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
sed -i.bak -e "s/\${VERSION}/v0.0.1-alpha.1622556506+7b638491.dirty/g" ./bin/package.json
yarn install v1.22.10
warning package.json: No license field
info No lockfile found.
warning @pulumi/xyz@${VERSION}: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 3.49s.
node:internal/modules/cjs/loader:943
throw err;
^
Error: Cannot find module '/usr/local/bin/tsc'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Function.Module._load (node:internal/modules/cjs/loader:773:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
make: *** [Makefile:28: build_nodejs] Error 1
did i miss anything?
to reproduce: clone the repo, make ensure
, make build
tall-librarian-49374
07/12/2021, 6:22 PMbored-monitor-99026
07/12/2021, 8:26 PMyarn install v1.22.10
warning package.json: No license field
info No lockfile found.
warning @pulumi/xyz@${VERSION}: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 3.79s.
/bin/bash: line 2: tsc: command not found
make: *** [Makefile:28: build_nodejs] Error 127
then i did npm install typescript -g
then i got
success Saved lockfile.
Done in 3.39s.
cd sdk/dotnet/ && \
echo "azure-native\n0.0.1-alpha.1626114196+eb4d21e0.dirty" >version.txt && \
dotnet build /p:Version=0.0.1-alpha.1626114196+eb4d21e0.dirty
/bin/bash: line 2: dotnet: command not found
make: *** [Makefile:46: build_dotnet] Error 127
i guess i need to install dotnet environment as well.
but i wonder if i am going to develop a pulumi provider in python, can i just comment out all the dotnet
part in Makefile?
update: pulumi up
is successful!tall-librarian-49374
07/12/2021, 8:34 PMcan i just comment out all theYou canpart in Makefile?dotnet