代码之家  ›  专栏  ›  技术社区  ›  Pramesh Bajracharya

纱线开始时,设备错误上没有剩余空间

  •  1
  • Pramesh Bajracharya  · 技术社区  · 8 年前

    我创建了一个简单的 create-react-app 然后project使用 yarn start

    Starting the development server...
    
    events.js:167
        throw er; // Unhandled 'error' event
        ^
    
    Error: ENOSPC: no space left on device, watch '/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/public'
        at FSWatcher.start (internal/fs/watchers.js:164:26)
        at Object.watch (fs.js:1232:11)
        at createFsWatchInstance (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:37:15)
        at setFsWatchListener (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:80:15)
        at FSWatcher.NodeFsHandler._watchWithNodeFs (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:232:14)
        at FSWatcher.NodeFsHandler._handleDir (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:414:19)
        at FSWatcher.<anonymous> (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:462:19)
        at FSWatcher.<anonymous> (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:467:16)
        at FSReqWrap.oncomplete (fs.js:155:5)
    Emitted 'error' event at:
        at FSWatcher._handleError (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/index.js:260:10)
        at createFsWatchInstance (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:39:5)
        at setFsWatchListener (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:80:15)
        [... lines matching original stack trace ...]
        at FSReqWrap.oncomplete (fs.js:155:5)
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    

    npm start 但这也不管用。

    2 回复  |  直到 8 年前
        1
  •  0
  •   Kamil Dzieniszewski    8 年前

    你需要检查一下你的身体节点.js版本。

    作为 documentation You’ll need to have Node >= 6 on your local development machine

        2
  •  0
  •   krisaoe    7 年前

    尝试删除node\u modules文件夹,然后使用NPM安装('NPM i')并运行('NPM run start'),而不是使用Yarn。

        3
  •  0
  •   Jida    7 年前

    我也有类似的问题。通过增加inotify手表的数量来解决这个问题。在此处使用帮助: https://github.com/parcel-bundler/parcel/issues/1427 https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

    通过使用: sudo sysctl fs.inotify.max_user_watches=999999999 并使用:

    echo fs.inotify.max_user_watches=999999999 | sudo tee -a /etc/sysctl.conf 
    sudo sysctl --system