对于创建反应-应用程序,我在与src相同级别的__test__文件夹中创建了一些测试
在运行npm test项目文件夹后,我得到以下错误
我如何解决这个问题,以便运行我的测试?
jenkins@VBOX:dashboard$ npm test
> react-scripts test --env=jsdom
Determining test suites to run...fs.js:1236
throw error;
^
Error: watch /home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/babel-jest/node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument/node_modules/babel-types/node_modules/babel-runtime/node_modules/core-js/fn/symbol ENOSPC
at exports._errnoException (util.js:907:11)
at FSWatcher.start (fs.js:1234:19)
at Object.fs.watch (fs.js:1262:11)
at NodeWatcher.watchdir (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/src/node_watcher.js:144:20)
at Walker.<anonymous> (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/src/node_watcher.js:353:12)
at emitTwo (events.js:87:13)
at Walker.emit (events.js:172:7)
at /home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/sane/node_modules/walker/lib/walker.js:69:16
at go$readdir$cb (/home/jenkins/dev/git-stash/dashboard/node_modules/react-scripts/node_modules/jest/node_modules/jest-cli/node_modules/graceful-fs/graceful-fs.js:149:14)
at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! Test failed. See above for more details.发布于 2016-12-10 10:38:21
所以在每一个节点错误的第一行末尾,所有大写中的无意义词.那是一个https://github.com/nodejs/node-v0.x-archive/blob/3d3d48d4b78d48e9b002660fc045ba8bb4a96af2/deps/uv/include/uv.h#L65。这个是ENOSPC,意思是“没有驱动器上的空间”。
也就是说,您的驱动器已经满了,您必须在再次运行npm安装之前释放空间,解决问题的是前者而不是后者。
发布于 2017-04-06 16:50:13
有时,我们达到了我们可以同时观看的文件数量的限制,我们获得了错误,而有足够的空闲空间。
在Linux (Debian,NPMv3.10.10,nodev6.10.2)上,可以先尝试$ npm dedupe,如果还需要,通过
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
学分归hexo.io。
发布于 2017-01-27 10:10:08
我也有同样的问题。我通过安装最新的npm来解决这个问题。我在npm版本2.15.11中得到了ENOSPC错误。它适用于v3.10.10。
https://stackoverflow.com/questions/40999293
复制相似问题