Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Angular Project - "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 2 #1330

@brycekmartin

Description

@brycekmartin

I'm trying to create a WebDeploy package to handoff to my system admins for the netcore2.0 angular 4 project. but I keep getting the following error when I run the Publish command on the project in VS 2017...

The command "node node_modules/webpack/bin/webpack.js --env.prod" exited with code 2.

Attached in the error log from npm-cache...
2017-10-09T14_36_28_220Z-debug.log

It is basically not looking in the correct directory for the package.json file...
This command works...
node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js --env.prod

This command does not:
node node_modules/webpack/bin/webpack.js --env.prod

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions