Our Ember app having multiple contexts and some of the reusable components, services, modals are maintained inside addons. The addons are symlinked inside app package.json as like below
Actually, we are parallelly executing the “npm install” and “ember build --production” command in all context. ( for saving time ) and got the build successfully.
Now, we are upgrading our Ember app to “3.1.3” and the node to “10.16.2”
After upgrading the node version the addon symlinks are unsuccessful and got some npm error and the Ember build also failed
[exec] npm ERR! path /build/WH_DIR/Sep_02_2019/ZD_CLIENT/ZD_CLIENT_2485940/ZD_CLIENT_DBUILD/build/ZD_CLIENT/zd_client/docs-addon/node_modules/workerpool/package.json.3718536446 [exec] npm ERR! code ENOENT [exec] npm ERR! errno -2 [exec] npm ERR! syscall chown [exec] npm ERR! enoent ENOENT: no such file or directory, chown '/build/WH_DIR/Sep_02_2019/ZD_CLIENT/ZD_CLIENT_2485940/ZD_CLIENT_DBUILD/build/ZD_CLIENT/zd_client/docs-addon/node_modules/workerpool/package.json.3718536446' [exec] npm ERR! enoent This is related to npm not being able to find a file. [exec] npm ERR! enoent [exec] [exec] npm ERR! A complete log of this run can be found in: [exec] npm ERR! /.npm/_logs/2019-09-02T16_56_29_482Z-debug.log [exec] Result: 254 [echo] ExitValue from the task is : 254
Can someone help us to fix the errors.