KotanaSai21 Github contribution chart
KotanaSai21 Github Stats
KotanaSai21 Most Used Languages

Activity

11 Oct 2022

KotanaSai21

started

Started On 11 Oct 2022 at 10:52:56

KotanaSai21

Error: Npm failed with return code: 1

Hi , I am getting this error while running npm install task in azure pipeline.Locally in VisualCode its working perfectly but getting error here. Node V: 16.15.1 Npm V: 8.11.0 Angular Cli: 14.0.2

here is log Data 2022-07-25T08:22:22.9966480Z ##[section]Starting: npm install 2022-07-25T08:22:23.0245564Z ============================================================================== 2022-07-25T08:22:23.0245845Z Task : npm 2022-07-25T08:22:23.0246152Z Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Azure Artifacts. 2022-07-25T08:22:23.0246462Z Version : 1.202.0 2022-07-25T08:22:23.0246627Z Author : Microsoft Corporation 2022-07-25T08:22:23.0246869Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/npm 2022-07-25T08:22:23.0247165Z ============================================================================== 2022-07-25T08:22:24.2200339Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\16.15.1\x64\npm.cmd --version" 2022-07-25T08:22:27.8385692Z npm WARN config global --global, --local are deprecated. Use --location=global instead. 2022-07-25T08:22:27.8386122Z 8.11.0 2022-07-25T08:22:31.4127930Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\16.15.1\x64\npm.cmd config list" 2022-07-25T08:22:33.4309352Z npm WARN config global --global, --local are deprecated. Use --location=global instead. 2022-07-25T08:22:33.4310486Z ; "global" config from C:\npm\prefix\etc\npmrc 2022-07-25T08:22:33.4310815Z 2022-07-25T08:22:33.4311170Z cache = "C:\npm\cache" 2022-07-25T08:22:33.4311352Z 2022-07-25T08:22:33.4311687Z ; "env" config from environment 2022-07-25T08:22:33.4311871Z 2022-07-25T08:22:33.4312173Z prefix = "C:\npm\prefix" 2022-07-25T08:22:33.4312604Z userconfig = "D:\a\1\npm\126.npmrc" 2022-07-25T08:22:33.4312812Z 2022-07-25T08:22:33.4313251Z ; node bin location = C:\hostedtoolcache\windows\node\16.15.1\x64\node.exe 2022-07-25T08:22:33.4313794Z ; node version = v16.15.1 2022-07-25T08:22:33.4314202Z ; npm local prefix = D:\a\1\s 2022-07-25T08:22:33.4314609Z ; npm version = 8.11.0 2022-07-25T08:22:33.4314941Z ; cwd = D:\a\1\s 2022-07-25T08:22:33.4315768Z ; HOME = C:\Users\VssAdministrator 2022-07-25T08:22:33.4316301Z ; Run npm config ls -l to show all defaults. 2022-07-25T08:22:33.4319156Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\16.15.1\x64\npm.cmd install" 2022-07-25T08:22:37.0284674Z npm WARN config global --global, --local are deprecated. Use --location=global instead. 2022-07-25T08:22:37.0286887Z npm ERR! code ERESOLVE 2022-07-25T08:22:37.0289729Z npm ERR! ERESOLVE unable to resolve dependency tree 2022-07-25T08:22:37.0292249Z npm ERR! 2022-07-25T08:22:37.0294940Z npm ERR! While resolving: as400-client@0.0.0 2022-07-25T08:22:37.0296662Z npm ERR! Found: @angular/animations@14.1.0 2022-07-25T08:22:37.0298538Z npm ERR! node_modules/@angular/animations 2022-07-25T08:22:37.0298862Z npm ERR! @angular/animations@"^14.0.0" from the root project 2022-07-25T08:22:37.0299115Z npm ERR! 2022-07-25T08:22:37.0299332Z npm ERR! Could not resolve dependency: 2022-07-25T08:22:37.0299665Z npm ERR! peer @angular/animations@"^13.0.0" from angular-bootstrap-md@13.0.0 2022-07-25T08:22:37.0300191Z npm ERR! node_modules/angular-bootstrap-md 2022-07-25T08:22:37.0300487Z npm ERR! angular-bootstrap-md@"^13.0.0" from the root project 2022-07-25T08:22:37.0300737Z npm ERR! 2022-07-25T08:22:37.0301842Z npm ERR! Fix the upstream dependency conflict, or retry 2022-07-25T08:22:37.0302698Z npm ERR! this command with --force, or --legacy-peer-deps 2022-07-25T08:22:37.0303890Z npm ERR! to accept an incorrect (and potentially broken) dependency resolution. 2022-07-25T08:22:37.0304345Z npm ERR! 2022-07-25T08:22:37.0304642Z npm ERR! See C:\npm\cache\eresolve-report.txt for a full report. 2022-07-25T08:22:37.0304803Z 2022-07-25T08:22:37.0305169Z npm ERR! A complete log of this run can be found in: 2022-07-25T08:22:37.0305632Z npm ERR! C:\npm\cache_logs\2022-07-25T08_22_35_196Z-debug-0.log 2022-07-25T08:22:37.0867654Z ##[warning]Couldn't find a debug log in the cache or working directory 2022-07-25T08:22:37.0899459Z ##[error]Error: Npm failed with return code: 1 2022-07-25T08:22:37.0912949Z ##[section]Finishing: npm install

Here is Pipeline Tasks trigger:

  • master

pool: vmImage: windows-latest

workspace: clean: all steps:

  • task: NodeTool@0 inputs: versionSpec: '16.15.1' displayName: 'Install Node.js'

  • task: Npm@1 inputs: command: 'install' displayName: 'Npm Install'

  • task: Npm@1 inputs: command: 'custom' customCommand: 'run build' displayName: 'Build Angular App' ` I also attached Debug Log file here. debug log file.txt

Dont have to much experience with Azure Pipeline, I hope will get better solution for this error.

Forked On 06 Oct 2022 at 08:27:24

KotanaSai21

@Hasnni , If this problem is fixed, Can You please share how You resolved this issue. I am also facing the same problem. Thank You

Commented On 06 Oct 2022 at 08:27:24

KotanaSai21

started

Started On 22 Sep 2022 at 06:05:12

KotanaSai21

started

Started On 02 Sep 2022 at 05:16:22

KotanaSai21

started

Started On 02 Sep 2022 at 05:16:14

KotanaSai21

started

Started On 02 Sep 2022 at 05:16:07