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
“dependencies”: {
“ember-cli”: “3.1.3”,
“ember-cli-app-version”: “^3.0.0”,
“ember-cli-babel”: “^6.6.0”,
…
…
“docs-addon”: “file:…/docs-addon”,
“zd-ld”: “file:…/zd-ld”
}
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
Error:
[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.