Skip to content

Cannot complete npm install after upgrading to beta.24 and angular 2.4.0 #3669

Closed
@vapits

Description

@vapits

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

MacOS Siera 10.12.2

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.24
node: 6.6.0
os: darwin x64
@angular/common: 2.4.0
@angular/compiler: 2.4.0
@angular/core: 2.4.0
@angular/forms: 2.4.0
@angular/http: 2.4.0
@angular/platform-browser: 2.4.0
@angular/platform-browser-dynamic: 2.4.0
@angular/material: 2.0.0-alpha.11
@angular/router: 3.4.0
@angular/compiler-cli: 2.4.0

Of course if I try to run the app with ng serve i'm getting errors. Specifically this:

patterns.map is not a function
TypeError: patterns.map is not a function
at GlobCopyWebpackPlugin.apply (/Projects/WebApp/node_modules/angular-cli/plugins/glob-copy-webpack-plugin.js:16:29)
at Compiler.apply (/Projects/WebApp/node_modules/tapable/lib/Tapable.js:270:16)
at WebpackOptionsApply.process (/Projects/WebApp/node_modules/webpack/lib/WebpackOptionsApply.js:59:18)
at webpack (/Projects/WebApp/node_modules/webpack/lib/webpack.js:28:48)
at Class.run (/Projects/WebApp/node_modules/angular-cli/tasks/serve-webpack.js:38:27)
at /Projects/WebApp/node_modules/angular-cli/commands/serve.js:108:26
at process._tickCallback (internal/process/next_tick.js:103:7)

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

This is an app created with the cli. I just upgrade from 2.2.1 (Angular) to 2.4.0 and cli from beta.21 to beta.24

The log given by the failure.

Normally this include a stack trace and some more information.

├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── UNMET PEER DEPENDENCY [email protected]

npm WARN [email protected] requires a peer of tslint@~4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@<=2.3 >=2.2.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@<=2.3 >=2.2.0 but none was installed.

Mention any other details that might be useful.

I delete of course first the node_modules directory and did a clean npm install and of course before I have upgrade the global cli version with uninstall, clean cache and install the latest version.

I guess this is a codelyzer issue but on the other hand as it is published I guess there is a workaround, correct? If so please share it in order to be able to upgrade our projects.

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