Phonegap/Cordova build android node_modules/q/q.js throw e;

前端 未结 8 2133
长情又很酷
长情又很酷 2020-12-09 08:50

cordova build android gives me the following err

node_modules/q/q.js:126 throw e; (*error details)

This question has been asked before, but

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 09:25

    I ran into this same problem while running 'phonegap serve', but the solution was very different. I noticed that operation would work when I restarted my computer. In case anyone else runs into this problem. Here is the solution on Ubuntu 15

    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
    

    which was taken from the stackoverflow thread Grunt watch error - Waiting...Fatal error: watch ENOSPC

    In addition to the posters error, I had the error

    at exports._errnoException (util.js:856:11)
    at FSWatcher.start (fs.js:1313:19)
    at Object.fs.watch (fs.js:1341:11)
    

    further down.

提交回复
热议问题