How to import node.js 'extend' module using Apigee Admin tool?

Not applicable

Is there a way to import node.js extend module using the Apigee Admin tool? Is it supported?

Basically, the below command needs to be run on the server:

npm install extend

--SF903275--

Solved Solved
0 3 232
1 ACCEPTED SOLUTION

Not applicable

If your node proxy has a package.json, it will install any modules that are declared as dependencies before running your script.

View solution in original post

3 REPLIES 3

Not applicable

If your node proxy has a package.json, it will install any modules that are declared as dependencies before running your script.

I imported package.json into my node proxy, and tried to run the npm "install" command via this API, but I get this response in the UI: An internal error has occurred. Please retry your request.

It appears to be a 504 Gatway Timeout.

It works fine though if I run the "ls" command, and it informs me that my dependencies are missing.

Thanks,

Wayde

Ah. Yes, "npm install" can sometimes time out on the server. Often, a better solution is to upload the dependencies instead during deployment. If you are using a127, you can specify the -u option. Or if you're using apigeetool, it is -U.