I am seeing the following error while installing node Js modules in Apigee on premise

Not applicable

npm ERR! fetch failed https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz npm ERR! fetch failed https://registry.npmjs.org/mysql/-/mysql-2.10.2.tgz npm ERR! fetch failed https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz npm ERR! fetch failed https://registry.npmjs.org/mysql/-/mysql-2.10.2.tgz npm ERR! fetch failed https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz npm ERR! fetch failed https://registry.npmjs.org/mysql/-/mysql-2.10.2.tgz npm ERR! Hostname/IP doesn't match certificate's altnames npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Trireme Trireme npm ERR! node -v v0.10.32 npm ERR! npm -v 1.4.3 npm ERR!

0 6 521
6 REPLIES 6

Not applicable

Could someone please provide the resolution for this.

Not applicable

This isn't really a fix, but you can just upload the modules together with your node.js script. If you're using apigeetool, for example, you can simply use the -U option. If your handling it as an entire proxy, then you can simply `npm install` from where you package.json file is and deploy the whole apiproxy as a whole.

/geir

I am not using Apigeetool. I have used the following curl command from the management server.

curl -u email:password -X POST --header "Content-Type: application/x-www-form-urlencoded" -d "command=install" "http://localhost:8080/v1/organizations/Org_name/apis/ProxyName/revisions/1/npm"

Not applicable

Right. I'm suggesting that rather than making that POST call which is essentially tell apigee to "install" you can just upload it all as a package. In that way you can get around the issue you're facing....

/geir

Thanks for the suggestion Geir, I tried that way too but then I am facing connectivity issues with MySql. Please refer to the below link related to that issue.

https://community.apigee.com/questions/21555/i-am-unable-to-connect-nodejs-with-mysql-on-my-pri.html

hi @Geir Sjurseth

I am getting below error when i run the curl command from commad promt,

npm ERR! Trireme Trireme npm ERR! argv "./node" "/dvl/api/edge-management-server-4.16.09-0.0.891/lib/node _modules/npm/cli.js" "install" "--loglevel" "error" "--registry" "https://regist ry.npmjs.org/" "--cache" "/dvl/api/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! /dvl/api/var/log/edge-management-server/work/npm/npm730031691930736 7446.tmp/npm-debug.log C:\Users\P36198\sw-tank\curl-7.53.1-win64-mingw\bin>

Thanks,

Krish