Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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 708
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