ERROR:This is probably not a problem with npm. There is likely additional logging output above

  angular, cmd, javascript, node.js, npm

In my project, I’m trying to do a submission zip file but it’s not working when I do
npm run prepare-submission
It’s giving me the error I’ve attached

error

Also here is the debug.log file

1 verbose cli [ 1 verbose cli 'C:Program Filesnodejsnode.exe', 1 verbose cli 'C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js', 1 verbose cli 'run', 1 verbose cli 'prepare-submission' 1 verbose cli ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prepare-submission' ] 5 info lifecycle [email protected]~prepare-submission: [email protected] 6 verbose lifecycle [email protected]~prepare-submission: unsafe-perm in lifecycle true 7 verbose lifecycle [email protected]~prepare-submission: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsershpDesktopnd semesterWEB222senecaassignment 2a2node_modules.bin;C:Python38Scripts;C:Python38;C:Program Files (x86)Common FilesArcSoftBin;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:windowsSystem32OpenSSH;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesNVIDIA CorporationNVIDIA NvDLISR;C:Program FilesPuTTY;C:Program Filesnodejs;C:ProgramDatachocolateybin;C:UsershpAppDataLocalMicrosoftWindowsApps;;C:Program Files (x86)SSH Communications SecuritySSH Secure Shell;C:UsershpAppDataLocalProgramsMicrosoft VS Codebin;C:UsershpAppDataRoamingnpm 8 verbose lifecycle [email protected]~prepare-submission: CWD: C:UsershpDesktopnd semesterWEB222senecaassignment 2a2 9 silly lifecycle [email protected]~prepare-submission: Args: [ 9 silly lifecycle '/d /s /c', 9 silly lifecycle 'run-s -n -c prettier mkdir copy-src eslint-to-file test-to-file analyze-to-file zip' 9 silly lifecycle ] 10 silly lifecycle [email protected]~prepare-submission: Returned: code: 1 signal: null 11 info lifecycle [email protected]~prepare-submission: Failed to exec prepare-submission script 12 verbose stack Error: [email protected] prepare-submission: run-s -n -c prettier mkdir copy-src eslint-to-file test-to-file analyze-to-file zip12 verbose stack Exit status 1 12 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:332:16) 12 verbose stack at EventEmitter.emit (events.js:315:20) 12 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14) 12 verbose stack at ChildProcess.emit (events.js:315:20) 12 verbose stack at maybeClose (internal/child_process.js:1021:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 13 verbose pkgid [email protected] 14 verbose cwd C:UsershpDesktopnd semesterWEB222senecaassignment 2a2 15 verbose Windows_NT 10.0.18362 16 verbose argv "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js" "run" "prepare-submission" 17 verbose node v12.18.3 18 verbose npm v6.14.6 19 error code ELIFECYCLE 20 error errno 1 21 error [email protected] prepare-submission:run-s -n -c prettier mkdir copy-src eslint-to-file test-to-file analyze-to-file zip 21 error Exit status 1 22 error Failed at the [email protected] prepare-submission script. 22 error This is probably not a problem with npm. There is likely additional logging output above. 23 verbose exit [ 1, true ]

also rm is not working to remove node_module and packet-lock.json file. Can someone help me how to solve this problem? I tried a couple of times and things from the internet like clearing the cache, installing again and deleting node_module etc. But nothing seems to work. How to I do submission zip file? Please help me.

Source: Ask Javascript Questions

LEAVE A COMMENT