Skip to content

ng build --prod failure #7354

@shawnwang5

Description

@shawnwang5

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0
node: 8.2.1
os: win32 x64
@angular/animations: 4.3.3
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.3.0
@angular/compiler-cli: 4.3.3
@angular/language-service: 4.3.3

Repro steps.

  1. ng build --prod
  2. I will see the error message

The log given by the failure.

fs.js:652
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

  Error: ENOENT: no such file or directory, open 'C:\software\test\node_modules\_@angular_core@4.3.3@@angular\package.json'
    at Object.fs.openSync (fs.js:652:18)
    at Object.fs.readFileSync (fs.js:553:33)
    at licensePlugin.readPackageJson (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:26:19)
    at licensePlugin.getModuleInfo (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:30:28)
    at licensePlugin.<anonymous> (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:81:31)
    at Array.filter (native)
    at licensePlugin.writeModuleInfo (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:77:8)
    at licensePlugin.gatherModuleInfo (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:117:10)
    at licensePlugin.<anonymous> (C:\software\test\node_modules\_license-webpack-plugin@0.5.1@license-webpack-plugin\index.js:233:12)
    at Compiler.applyPlugins (C:\software\test\node_modules\_tapable@0.2.8@tapable\lib\Tapable.js:61:14)
    at onCompiled (C:\software\test\node_modules\_webpack@3.4.1@webpack\lib\Compiler.js:240:10)
    at applyPluginsAsync.err (C:\software\test\node_modules\_webpack@3.4.1@webpack\lib\Compiler.js:520:14)
    at next (C:\software\test\node_modules\_tapable@0.2.8@tapable\lib\Tapable.js:202:11)
    at Compiler.<anonymous> (C:\software\test\node_modules\_webpack@3.4.1@webpack\lib\CachePlugin.js:62:5)
    at Compiler.applyPluginsAsyncSeries (C:\software\test\node_modules\_tapable@0.2.8@tapable\lib\Tapable.js:206:13)
    at compilation.seal.err (C:\software\test\node_modules\_webpack@3.4.1@webpack\lib\Compiler.js:517:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

Desired functionality.

For the app to compile

Mention any other details that might be useful.

After I installed the following packages, there was a problem.
"@angular-redux/store": "^6.5.7",
"ng2-validation": "^4.2.0",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",

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