我发现了这个错误,我正在使用离子2角2。只要使用(离子服务)命令,我就会发现此错误。我该如何解决?
periyasamy@LAP-**5CG6326ZB7** ~/ionic_works $ cd sampleApp/
periyasamy@LAP-5CG6326ZB7 ~/ionic_works/sampleApp $ ionic serve
ionic-hello-world@ ionic:serve /home/periyasamy/ionic_works/sampleApp
ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
[17:10:26] ionic-app-scripts 1.1.3
[17:10:26] watch started ...
[17:10:26] build dev started ...
[17:10:26] clean started ...
[17:10:26] clean finished in 1 ms
[17:10:26] copy started ...
[17:10:26] transpile started ...
[17:10:28] transpile finished in 2.13 s
[17:10:28] preprocess started ...
[17:10:28] preprocess finished in less than 1 ms
[17:10:28] webpack started ...
[17:10:28] copy finished in 2.27 s
[17:10:34] webpack finished in 6.23 s
[17:10:34] sass started ...
[17:10:35] sass finished in 895 ms
[17:10:35] postprocess started ...
[17:10:35] postprocess finished in less than 1 ms
[17:10:35] lint started ...
[17:10:35] build dev finished in 9.31 s
[17:10:35] **watch failed: watcher error:**
/home/periyasamy/ionic_works/sampleApp/home/periyasamy/ionic_works/sampleApp/src/assets/**/*,/home/periyasamy/ionic_works/sampleApp/src/index.html,/home/periyasamy/ionic_works/sampleApp/src/manifest.json,/home/periyasamy/ionic_works/sampleApp/src/service-worker.js,/home/periyasamy/ionic_works/sampleApp/node_modules/ionicons/dist/fonts/**/*,/home/periyasamy/ionic_works/sampleApp/node_modules/ionic-angular/fonts/**/*,/home/periyasamy/ionic_works/sampleApp/node_modules/ionic-angular/polyfills/polyfills.js,/home/periyasamy/ionic_works/sampleApp/node_modules/sw-toolbox/sw-toolbox.js:
**# Error: watch /home/periyasamy/ionic_works/sampleApp/node_modules/ionicons/dist/fonts ENOSPC**
[17:10:35]运行:http://localhost:8100/
[17:10:36]棉绒在1.19 S
完成**** 离子信息 **** periyasamy@lap-5cg6326zb7〜/ionic_works/sampleapp $ ionic信息
您的系统信息:
Cordova CLI:6.5.0离子框架版本:2.1.0离子CLI版本: 2.2.1离子应用LIB版本:2.2.0离子应用脚本版本:1.1.3 ios-deploy版本:未安装iOS-SIM版本:未安装OS: Linux 4.4节点版本:v6.10.0 xcode版本:未安装
如果您的NPM已经更新(通过 npm -v 检查它必须高于2.0),然后在您的终端上运行此命令 -
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p