0
votes

I am trying to run npm install command and getting the below error; The same package.JSON works fine in local, but when I try to run the command through jenkins job getting the error.

npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/core@^4.0.0 but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/common@^4.0.0 but none was installed. npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. npm WARN @swimlane/[email protected] requires a peer of @angular/common@^4.0.0 but none was installed.

Please help me to fix this issue.

1

1 Answers

2
votes

This error message says that you want to use @angular/[email protected] without @angular/[email protected]. This usually happens when you are missing or using different versions of modules.

Solution is, try to update your package.json dependencies and install missing once.