From e5d34a0f7fc474f8db8dbca1153b67ab5b0e3f63 Mon Sep 17 00:00:00 2001 From: mhmdz Date: Fri, 4 Mar 2022 05:15:10 -0800 Subject: [PATCH] Updated npm install dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reason For Change: Encountered error due to missing doc on installing NPM dependencies Error : ``` npm run start > helloworld@0.0.1 start > ts-node src/client/main.ts /opt/homebrew/lib/node_modules/ts-node/src/index.ts:840 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: тип Unable to compile TypeScript: error TS6053: File '@tsconfig/recommended/tsconfig.json' not found. at createTSError (/opt/homebrew/lib/node_modules/ts-node/src/index.ts:840:12) at reportTSError (/opt/homebrew/lib/node_modules/ts-node/src/index.ts:844:19) at create (/opt/homebrew/lib/node_modules/ts-node/src/index.ts:855:36) at register (/opt/homebrew/lib/node_modules/ts-node/src/index.ts:563:15) at main (/opt/homebrew/lib/node_modules/ts-node/src/bin.ts:281:27) at Object. (/opt/homebrew/lib/node_modules/ts-node/src/bin.ts:539:3) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { diagnosticCodes: [ 6053 ] } ``` Fix: npm install --save-dev @tsconfig/recommended --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d523e50f..8fa494b8 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,9 @@ solana logs ```bash npm install +npm install -g typescript +npm install -g ts-node +npm install --save-dev @tsconfig/recommended ``` ### Build the on-chain program @@ -167,6 +170,9 @@ Success Program failed to complete: exceeded maximum number of instructions allowed (200000) at instruction #334 Program G5bbS1ipWzqQhekkiCLn6u7Y1jJdnGK85ceSYLx2kKbA failed: Program failed to complete +- ``` error TS6053: File '@tsconfig/recommended/tsconfig.json' not found. ``` + - Ensure to follow Install npm dependencies steps above, most likely due to ``` npm install --save-dev @tsconfig/recommended ``` not being installed + ### Customizing the Program To customize the example, make changes to the files under `/src`. If you change