Open Closed

NPM ERROR #10591


0
alfar_re created
  • What is your product version? - 10.2
  • What is your product type (Angular or MVC)? - MVC
  • What is product framework type (.net framework or .net core)? - .net core

Hi,

I've been having this issue on npm.

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'create-bundles' 1 verbose cli ] 2 info using npm@6.14.15 3 info using node@v14.17.6 4 verbose run-script [ 'precreate-bundles', 'create-bundles', 'postcreate-bundles' ] 5 info lifecycle abpzerotemplate@8.1.0~precreate-bundles: abpzerotemplate@8.1.0 6 info lifecycle abpzerotemplate@8.1.0~create-bundles: abpzerotemplate@8.1.0 7 verbose lifecycle abpzerotemplate@8.1.0~create-bundles: unsafe-perm in lifecycle true 8 verbose lifecycle abpzerotemplate@8.1.0~create-bundles: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\OneDrive\Projects\crm\src\reos.Web.Mvc\node_modules.bin;C:\Program Files\PowerShell\7;C:\Python39\Scripts;C:\Python39;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\140\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Azure Data Studio\bin;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Users\USER\AppData\Local\Microsoft\WindowsApps;C:\Users\USER.dotnet\tools;C:\Program Files\Azure Data Studio\bin;C:\Users\USER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\USER\AppData\Roaming\npm 9 verbose lifecycle abpzerotemplate@8.1.0~create-bundles: CWD: D:\OneDrive\Projects\crm\src\reos.Web.Mvc 10 silly lifecycle abpzerotemplate@8.1.0~create-bundles: Args: [ '/d /s /c', 'gulp buildDev' ] 11 silly lifecycle abpzerotemplate@8.1.0~create-bundles: Returned: code: 1 signal: null 12 info lifecycle abpzerotemplate@8.1.0~create-bundles: Failed to exec create-bundles script 13 verbose stack Error: abpzerotemplate@8.1.0 create-bundles: gulp buildDev 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)

13 verbose stack at EventEmitter.emit (events.js:400:28) 13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)

13 verbose stack at ChildProcess.emit (events.js:400:28) 13 verbose stack at maybeClose (internal/child_process.js:1055:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) 14 verbose pkgid abpzerotemplate@8.1.0 15 verbose cwd D:\OneDrive\Projects\crm\src\reos.Web.Mvc 16 verbose Windows_NT 10.0.21996 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 18 verbose node v14.17.6 19 verbose npm v6.14.15 20 error code ELIFECYCLE 21 error errno 1 22 error abpzerotemplate@8.1.0 create-bundles: gulp buildDev 22 error Exit status 1 23 error Failed at the abpzerotemplate@8.1.0 create-bundles script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]


12 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi @alfar_re

    It is hard to understand the error from the logs. Could you share your project with us via email (info@aspnetzero.com) ?

    Thanks,

  • 0
    alfar_re created

    Hi @ismcagdas,

    I have sent the web project via mail with subject NPM ERROR #10591

  • 0
    ismcagdas created
    Support Team

    Hi @alfar_re

    We have replied to your email.

    Thanks,

  • 0
    alfar_re created

    Hi @ismcagdas,

    Got it and responded. Thanks.

  • 0
    alfar_re created

    I was able to get rid of npm errors and have it build successfully. However, I have now lost all links to .css and .js and the solution returns about 22 errros like below.

    GET https://localhost:44302/view-resources/Areas/App/Views/_Bundles/common-scripts.min.js?v=SgHm-Pxah6Yy5iyMi2r3BAID-N96tRTa3oznETAo1j4 net::ERR_ABORTED 404

    The solution cannot run properly.

  • 0
    ismcagdas created
    Support Team

    Hi @alfar_re

    It seems like these errors happen since you modified the original source code (deleted some files) but didn't modify bundles.json properly.

    • Do you see an error message on the browser console ?
    • Do you see an erorr when you run npm run create-bundles command ?

    Thanks,

  • 0
    alfar_re created

    Hi @ismcagdas,

    I think this issue started when I tried to install devexpress reports and configured it to run on the mvc project.

    Do you see an error message on the browser console ? Yes, I have attached here.

    Do you see an erorr when you run npm run create-bundles command ? No, npm run create-bundles runs perfectly.

  • 0
    ismcagdas created
    Support Team

    Hi,

    Yes, it might be related. Is this the same error you are getting with the project you shared via email ?

    Thanks,

  • 0
    alfar_re created

    Hi,

    Yes it is. This error was generated from the project I shared on mail. Below is what I get on my views.

  • 0
    ismcagdas created
    Support Team

    Hi @alfar_re

    Thanks, is it possible to share your Entire project with info@aspnetzero.com ? I couldn't understand the problem by looking at the generated bundles.

  • 0
    alfar_re created

    Hi @ismcagdas,

    I have shared the entire project to the email thread. Kindly assist, this is affecting timelines. Thank you.

  • 0
    ismcagdas created
    Support Team

    Hi @alfar_re

    Sorry for my late reply but the shared file only contains MVC project. I need entire solution to run the project. Is that possible for you to share the entire solution ?

    Thanks,