polygon-io / client-js

The official JS client library for the Polygon REST and WebSocket API.
MIT License
184 stars 57 forks source link

Importing in node #186

Closed dschlesinger closed 3 weeks ago

dschlesinger commented 10 months ago

importing as described in the documentation fails because of @.

npm install --save @polygon.io/client-js

Error: At line:1 char:20

  • npm install --save @polygon.io/client-js The splatting operator '@' cannot be used to reference variables in an expression. '@polygon' can be used only as an argument to a command. To reference variables in an expression use '$polygon'.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : SplattingNotPermitted

The solution is to put quotes around the package like this

npm install --save '@polygon.io/client-js'

It would be helpful if you added this to your documentation.

justinpolygon commented 10 months ago

Great suggestion. Will do. Thanks.