Installation
The @icp-sdk/core is a single, unified package that contains all the modules you need to interact with the Internet Computer.
npm install @icp-sdk/corepnpm add @icp-sdk/coreYou might need to install the exact version of the peer dependencies of @icp-sdk/core manually:
pnpm add --save-exact @dfinity/agent@latest @dfinity/candid@latest @dfinity/identity@latest @dfinity/identity-secp256k1@latest @dfinity/principal@latestbun add @icp-sdk/coreyarn add @icp-sdk/coreIn case you are getting errors with the
@dfinity/*peer dependencies, make sure you clean thenode_modulesfolder and reinstall the dependencies. Each version of@icp-sdk/corerequires an exact version of the@dfinity/*peer dependencies.
We do not recommend using the CDN distribution of the @icp-sdk/core package for production applications.
It can constitute a security risk, because the CDN can potentially serve a different IC mainnet root key.