簡體   English   中英

Nuxt.js Vue安裝錯誤

[英]Nuxt.js Vue error in installing

我安裝了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

做了一些研究后發現了解決方案。 運行以下命令。

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

信用: Grunt手表錯誤 - 等待......致命錯誤:觀看ENOSPC

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM