NodeJS npm install error

Hi,

I want to install node modules from package.json and use nodejs app as a backend server. I am using the management api to install the modules

POST host:port/v1/organizations/{org_name}/apis/{api_name}/revisions/{rev_number}/npm.

Content-Type : application/x-www-form-urlencoded

command=install

But I get the below error

npm ERR! Trireme Trireme
npm ERR! argv "./node" "/apps/opt/software/apigee/edge-management-server-4.16.05-0.0.598/lib/node_modules/npm/cli.js" "install" "--loglevel" "error" "--registry" "https://registry.npmjs.org/" "--cache" "/apps/opt/software/apigee/var/log/edge-management-server/work/npm-cache" "--ignore-scripts" "true" "--bin-links" "false" "--json"
npm ERR! node v0.10.32
npm ERR! npm  v2.14.1


npm ERR! Hostname/IP doesn't match certificate's altnames
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>


npm ERR! Please include the following file with any support request:
npm ERR!     /apps/opt/software/apigee/var/log/edge-management-server/work/npm/npm7121508712349646514.tmp/npm-debug.log

Is something wrong with the node version ? Can someone point out the issue here ?

Thanks

Solved Solved
2 5 612
1 ACCEPTED SOLUTION

Not applicable

I've experienced similar issues in the past running npm install on the server side. My recommendation to get past this issue is to use apigeetool to upload your Node.js API using --upload-modules flag. @docs this issue might need to documented somewhere or raised to Engineering @Jeremy Whitlock?

To learn more about apigeetool check it out here: https://github.com/apigee/apigeetool-node


View solution in original post

5 REPLIES 5

Not applicable

Here is a silly question, is there an actual dot after your call ?

Not applicable

I've experienced similar issues in the past running npm install on the server side. My recommendation to get past this issue is to use apigeetool to upload your Node.js API using --upload-modules flag. @docs this issue might need to documented somewhere or raised to Engineering @Jeremy Whitlock?

To learn more about apigeetool check it out here: https://github.com/apigee/apigeetool-node


You can enable SNI (http://docs.apigee.com/private-cloud/content/using-sni-edge) and if that isn't an option, or that doesn't solve it, use the -R flag.

Used apigeetool to deploy the node modules and it worked !

Thanks

Awesome, Ram!