【问题标题】:Nuxt.js Vue error in installingNuxt.js Vue安装错误
【发布时间】:2017-10-25 04:47:57
【问题描述】:

我安装了 nux.js,但它给了我错误。我还将我的 npm 更新为 5.5.1 。 我不知道如何解决它。有人遇到这个错误吗? https://nuxtjs.org/guide/installation/

错误

Error: watch /home/laravel/Sites/kenneth/nuxt.config.js ENOSPC
    at _errnoException (util.js:1019:11)
    at FSWatcher.start (fs.js:1383:19)
    at Object.fs.watch (fs.js:1409:11)
    at createFsWatchInstance (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:37:15)
    at setFsWatchListener (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:228:14)
    at FSWatcher.NodeFsHandler._handleFile (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:255:21)
    at FSWatcher.<anonymous> (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:154:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kenneth@1.0.0 dev: `nuxt`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the kenneth@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/laravel/.npm/_logs/2017-10-25T04_42_50_296Z-debug.log

【问题讨论】:

标签: javascript vuejs2 nuxt.js vue.js


【解决方案1】:

在做了一些研究后找到了解决方案。运行以下命令。

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

感谢:Grunt watch error - Waiting...Fatal error: watch ENOSPC

【讨论】:

    猜你喜欢
    • 2020-04-19
    • 2021-10-24
    • 2020-11-29
    • 1970-01-01
    • 1970-01-01
    • 2018-05-28
    • 2018-03-05
    • 2021-02-13
    • 2021-02-13
    相关资源
    最近更新 更多