Base solution for your next web application
Open Closed

npm run create-bundles errno -4058 #11022


User avatar
0
Astech created

V10.4.0 - MVC - NET CORE

node v16.14.2 yarn v.2.4.0 npm v8.5.5

running npm run create-bundles generates the following error:

C:\Repos\Congresso\src\Congresso.Web.Mvc>npm run create-bundles

[email protected] create-bundles yarn && gulp buildDev

npm ERR! code ENOENT npm ERR! syscall spawn bash npm ERR! path C:\Repos\Congresso\src\Congresso.Web.Mvc npm ERR! errno -4058 npm ERR! enoent spawn bash ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\JRadu\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log

LOG:

0 verbose cli [ 0 verbose cli 'C:\Program Files\nodejs\node.exe', 0 verbose cli 'C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 0 verbose cli 'run', 0 verbose cli 'create-bundles' 0 verbose cli ] 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:C:\Users*\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\Repos\Congresso\src\Congresso.Web.Mvc.npmrc Completed in 0ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:C:\Users*.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users*\AppData\Roaming\npm\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 12ms 19 timing npm:load:configload Completed in 12ms 20 timing npm:load:setTitle Completed in 0ms 21 timing config:load:flatten Completed in 2ms 22 timing npm:load:display Completed in 4ms 23 verbose logfile C:\Users*\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log 24 timing npm:load:logFile Completed in 51ms 25 timing npm:load:timers Completed in 0ms 26 timing npm:load:configScope Completed in 1ms 27 timing npm:load Completed in 70ms 28 silly logfile start cleaning logs, removing 2 files 29 timing command:run Completed in 13ms 30 verbose stack Error: spawn bash ENOENT 30 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) 30 verbose stack at onErrorNT (node:internal/child_process:478:16) 30 verbose stack at processTicksAndRejections (node:internal/process/task_queues:83:21) 31 verbose pkgid [email protected] 32 verbose cwd C:\Repos\Congresso\src\Congresso.Web.Mvc 33 verbose Windows_NT 10.0.19042 34 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 35 verbose node v16.14.2 36 verbose npm v8.5.5 37 error code ENOENT 38 error syscall spawn bash 39 error path C:\Repos\Congresso\src\Congresso.Web.Mvc 40 error errno -4058 41 error enoent spawn bash ENOENT 42 error enoent This is related to npm not being able to find a file. 42 error enoent 43 verbose exit -4058 44 timing npm Completed in 463ms 45 verbose code -4058 46 error A complete log of this run can be found in: 46 error C:\Users***\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log

The mvc bundles.json:

https://pastebin.com/nngCz8s7


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you remove these files and see if it helps solving the issue ?

    If this doesn't solve the problem, could you also share your package.json and yarn.lock files ?

    Thanks

  • User Avatar
    0
    Astech created

    Hi,

    I have removed the files and tried npm install and npm run create-bundles, same result.

    package.json { "name": "abpzerotemplate", "scripts": { "create-bundles": "yarn && gulp buildDev", "build": "yarn && gulp build" }, "version": "10.4.0", "dependencies": { "@fancyapps/fancybox": "^3.5.7", "@fortawesome/fontawesome-free": "^5.8.1", "@microsoft/signalr": "^3.1.2", "abp-web-resources": "5.2", "animate.css": "^3.7.0", "autosize": "^4.0.2", "block-ui": "^2.70.1", "blueimp-file-upload": "^10.2.0", "bootstrap": "4.3.1", "bootstrap-daterangepicker": "^3.0.3", "bootstrap-hover-dropdown": "^2.2.1", "bootstrap-markdown": "^2.10.0", "bootstrap-maxlength": "^1.6.0", "bootstrap-notify": "^3.1.3", "bootstrap-select": "^1.13.9", "bootstrap-switch": "3.3.4", "bootstrap-timepicker": "^0.5.2", "bootstrap-touchspin": "^4.2.5", "bootstrap4-datetimepicker": "^5.2.3", "chart.js": "^2.7.3", "chartist": "^0.11.0", "cookieconsent": "^3.1.0", "css-toggle-switch": "^4.1.0", "d3": "^5.9.1", "datatables.net": "^2.1.1", "datatables.net-bs4": "^3.2.2", "datatables.net-responsive": "^2.2.3", "datatables.net-responsive-bs4": "^2.2.3", "datatables.net-select": "^1.3.0", "detect-zoom": "^1.0.2", "dropzone": "^5.5.1", "easy-pie-chart": "^2.1.7", "famfamfam-flags": "^1.0.0", "flot": "^0.8.0-alpha", "gmaps": "^0.4.24", "gridstack": "^4.2.3", "inputmask": "^4.0.6", "ion-rangeslider": "^2.3.0", "jquery": "^3.3.1", "jquery-form": "^4.2.2", "jquery-serializejson": "^2.9.0", "jquery-slimscroll": "^1.3.8", "jquery-sparkline": "^2.4.0", "jquery-validation": "^1.19.0", "jquery.counterup": "^2.1.0", "jquery.uniform": "^4.3.0", "jqvmap": "^1.5.1", "js-beautify": "^1.13.0", "js-cookie": "^2.2.0", "js-url": "^2.3.0", "json2": "*", "jstree": "^3.3.7", "localforage": "^1.7.3", "malihu-custom-scrollbar-plugin": "^3.1.5", "moment": "^2.24.0", "moment-timezone": "^0.5.23", "morris.js": "^0.5.0", "mustache": "^3.0.1", "pace-progress": "^1.0.2", "perfect-scrollbar": "^1.4.0", "popper.js": "^1.14.7", "prismjs": "^1.16.0", "push.js": "^1.0.9", "pwstrength-bootstrap": "^3.0.5", "rangeslider.js": "^2.3.2", "raphael": "^2.2.8", "select2": "^4.0.10", "select2-bootstrap-theme": "^0.1.0-beta.10", "signalr": "^2.4.0", "simple-line-icons": "^2.4.1", "socicon": "^3.0.5", "spin.js": "^2.3.2", "sticky-js": "^1.2.0", "summernote": "^0.8.11", "sweetalert": "^2.1.2", "tether": "1.4.7", "timeago": "^1.6.5", "toastr": "^2.1.4", "tooltip.js": "^1.3.1", "topojson": "^3.0.2", "typeahead.js": "^0.11.1", "underscore": "^1.9.1", "urijs": "^1.19.1", "waypoints": "^4.0.1" }, "devDependencies": { "@types/node": "^12.7.4", "globby": "^9.2.0", "gulp": "^4.0.1", "gulp-clean-css": "^4.2.0", "gulp-concat": "^2.6.1", "gulp-less": "^4.0.1", "gulp-postcss": "^8.0.0", "gulp-uglify-es": "^1.0.4", "merge-stream": "^2.0.0", "postcss-url": "^9.0.0", "rimraf": "^3.0.0", "yarn": "^1.15.0" } }

    yarn.lock https://pastebin.com/b4YaurcE

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Astech

    It seems like I need the entire MVC project (not the entire solution) to test this. Could you send it to [email protected] ?

    Thanks,

  • User Avatar
    0
    Astech created

    Hi,

    I have just sent an email with the zipped mvc project.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, I got the project and replied via email. We can continue via email.