cloud icon indicating copy to clipboard operation
cloud copied to clipboard

How to install a package properly?

Open bencao opened this issue 3 years ago • 4 comments

For example, if I would like to install aws-sdk package, what should I do?

bencao avatar Feb 11 '22 20:02 bencao

Hi @bencao. You are in a standard Node environment, so NPM packages work the same way. You can either npm i aws-sdk from your terminal, or if you're in the Cloud Shell, you can type install aws-sdk. You'll then import what you need into your main file (e.g. index.js).

jeremydaly avatar Feb 11 '22 20:02 jeremydaly

Having some difficulty installing a bigger package. If there's an option to force upload my local directory to an instance would be great.

The cloud process just quit after npm i aws-sdk and the error looks like

Missing x records

bencao avatar Feb 11 '22 21:02 bencao

@bencao is this still an issue? There have been fixes related to the sync process that should have fixed that error.

rschick avatar Apr 20 '22 15:04 rschick

I guess my problem is related to this, I wonder what I am doing wrong on windows 10, node 14

image

tfiliano avatar Jun 10 '22 21:06 tfiliano