IBM Support

npm update command fails with error code ENOENT

Technical Blog Post


Abstract

npm update command fails with error code ENOENT

Body

As per the customization per-requisites in IBM Sterling Selling and Fulfillment Suite 9.5, you are required to install gulp and its dependencies. The section Installing gulp and its dependencies gives steps to install gulp and its dependencies in windows environment.

However while executing the command 'npm update' in Step 8, you may come across the below error:
================================
65195 error Error: ENOENT, open 'C:\StoreBuild\node_modules\angular-jsdoc\node_modules\angular-template\node_modules\cheerio\node_modules\lodash\_mapCacheHas.js'
65196 error If you need help, you may report this *entire* log,
65196 error including the npm and node versions, at:
65196 error     <http://github.com/npm/npm/issues&gt;
65197 error System Windows_NT 6.1.7601
65198 error command "C:\\NodeJS\\\\node.exe" "C:\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "update"
65199 error cwd C:\StoreBuild
65200 error node -v v0.10.28
65201 error npm -v 1.4.9
65202 error path C:\StoreBuild\node_modules\angular-jsdoc\node_modules\angular-template\node_modules\cheerio\node_modules\lodash\_mapCacheHas.js
65203 error code ENOENT
65204 error errno 34

65205 verbose exit [ 34, true ]
================================

This error can also occur in Unix environment. The cause of the issue seems to be related to angular-jsdoc package installation.
You might not need angular-jsdoc package for the customization. Hence, as a workaround, you can comment out the angular-jsdoc entry in <STORE_BUILD_FOLDER>/package.json and try to run the npm update again.

 

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11124445