Currently, there is an ongoing issue with the deployments of Node.js components which use the npm@5.3 prune. This issue is known and reported in the NPM community and more can be learned by following the discussion here.

Some of the users found that by removing the devDependencies section completely the deployment proceeds successfully. However, the proper solution is to add the following setup in the package.json of your component:

"engines": {
    "node": "^8.4.0",
    "npm": ">=5.4"