I'm trying to deploy the latest changes to the Recommendation API (T215222), but for some reason the following command is failing:
node server.js build --deploy-repo --review
Here's the error message:
Now using node v6.11.1 (npm v3.10.10) npm ERR! Linux 4.19.46-1-lts npm ERR! argv "/usr/local/nvm/versions/node/v6.11.1/bin/node" "/usr/local/nvm/versions/node/v6.11.1/bin/npm" "install" "heapdump" "gc-stats" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! path /opt/service/node_modules/service-runner npm ERR! code EISGIT npm ERR! git /opt/service/node_modules/service-runner: Appears to be a git repo or submodule. npm ERR! git /opt/service/node_modules/service-runner npm ERR! git Refusing to remove it. Update manually, npm ERR! git or move it out of the way first. npm ERR! Please include the following file with any support request: npm ERR! /opt/service/npm-debug.log ERROR: docker run exited with code 1
This is the error message from the aforementioned log file:
1171 verbose stack Error: /opt/service/node_modules/service-runner: Appears to be a git repo or submodule. 1171 verbose stack at /usr/local/nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/npm-install-checks/index.js:137:15 1171 verbose stack at /usr/local/nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:267:18 1171 verbose stack at FSReqWrap.oncomplete (fs.js:123:15) 1172 verbose cwd /opt/service 1173 error Linux 4.19.46-1-lts 1174 error argv "/usr/local/nvm/versions/node/v6.11.1/bin/node" "/usr/local/nvm/versions/node/v6.11.1/bin/npm" "install" "heapdump" "gc-stats" 1175 error node v6.11.1 1176 error npm v3.10.10 1177 error path /opt/service/node_modules/service-runner 1178 error code EISGIT 1179 error git /opt/service/node_modules/service-runner: Appears to be a git repo or submodule. 1180 error git /opt/service/node_modules/service-runner 1181 error git Refusing to remove it. Update manually, 1181 error git or move it out of the way first. 1182 verbose exit [ 1, true ]
What maybe causing this? How to fix?