alpacahq / alpaca-ts

A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
ISC License
154 stars 42 forks source link

Cannot run npm run build with node v17 & npm v8 #109

Open sneilan opened 1 year ago

sneilan commented 1 year ago

Description Running npm run build encounters an error when it executes npm i Instead, I get this error

➜  alpaca git:(main) npm run build

> @master-chief/alpaca@6.3.20 build
> npm run clean && npm i && npm run build:mjs && npm run build:cjs && npm run build:esm  && npm run build:browser && npm run build:esm_bundle

> @master-chief/alpaca@6.3.20 clean
> rimraf dist @types

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm WARN deprecated standard-version@9.3.1: standard-version is deprecated. If you're a GitHub user, I recommend https://github.com/googleapis/release-please as an alternative.
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sneilan/.npm/_logs/2022-10-17T13_02_36_313Z-debug-0.log

Expected I expect npm run build to build the application.

Reproduction Use node v17.6.0 & npm v8.11.0.

  1. git clone
  2. npm i

Switching to node v14.20.1 lets the application build normally. This is definitely lower priority because alpaca client is still usable in latest version of node once installed. This is only important for contributors who wish to build the client.

117 commented 1 year ago

v7 is on the way, you can track it here #113