in package.json we install
"scripts": {,
"postinstall": "cd ./node_modules/.pnpm/pulsar-client@1.12.0/node_modules/pulsar-client && pnpm run install",
"start": "cross-env NODE_ENV=development nodemon --watch app -e ts,tsx --exec ts-node --require tsconfig-paths/register --files app/index.ts",
"beautify": "npx prettier --write \"**/*.{js,ts,json,html,scss,css}\""
}
"dependencies": {
"pulsar-client": "1.12.0",
"pulsar-flex": "^1.1.1",
}`
add the following config into your .npmrc file to enhance the speed
pulsar_binary_host_mirror=https://mirrors.huaweicloud.com/apache/pulsar/pulsar-client-node/
Top comments (0)