# patchPackage fail when doing npm install

**URL:** <https://discuss.circleci.com/t/patchpackage-fail-when-doing-npm-install/33890>\
**Category:** Community\
**Created:** [December 26, 2019, 6:36am UTC](https://discuss.circleci.com/t/patchpackage-fail-when-doing-npm-install/33890 "2019-12-26T06:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidshen84](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/davidshen84/32/23887_2.png) [@davidshen84](https://discuss.circleci.com/u/davidshen84)\
**Post date:** [December 26, 2019, 6:36am UTC](https://discuss.circleci.com/t/patchpackage-fail-when-doing-npm-install/33890/1 "2019-12-26T06:36:42Z")

</div>

Hi,

I got this strang “npm install” error when start building my project. It looks like the “npm install” did not even happen. The build works on my local. I guess something is wrong with my configuration.

> angularx-qrcode@1.7.0-beta.5 patchPackage /home/circleci/project/source/node\_modules/angularx-qrcode  
> patch-package

patch-package 6.2.0  
Applying patches…  
Error: Patch file found for package qrcodejs2 which is not present at node\_modules/qrcodejs2  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! angularx-qrcode@1.7.0-beta.5 patchPackage: `patch-package`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the angularx-qrcode@1.7.0-beta.5 patchPackage script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
npm WARN Local package.json exists, but node\_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/circleci/.npm/\_logs/2019-12-26T06\_17\_06\_117Z-debug.log  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node\_modules/fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node\_modules/karma/node\_modules/fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node\_modules/chokidar/node\_modules/fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})  
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node\_modules/@types/gulp/node\_modules/fsevents):  
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! angularx-qrcode@1.7.0-beta.5 postinstall: `npm run patchPackage`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the angularx-qrcode@1.7.0-beta.5 postinstall script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/circleci/.npm/\_logs/2019-12-26T06\_17\_07\_001Z-debug.log
