gpt4 book ai didi

node.js - JS 文件更改后出现奇怪的 Ionic CLI 错误

转载 作者:太空宇宙 更新时间:2023-11-04 02:21:57 25 4
gpt4 key购买 nike

我在我的应用程序中使用 openfb.js,当应用程序正常工作时,我必须更改 openfb.js 文件中的 1 行。然后奇怪的事情发生了当我在 API 中输入 Ionicserve 时,出现错误,这似乎在某种程度上,Ionic 正在搜索 JetBrains IDE 在编辑时创建的临时文件 openfb.js__jb__old__1我能做些什么?非常感谢任何帮助,谢谢.. Question on Ionic forums

C:\Users\Imad\myapp> ionic 服务

Live Reload failed to start, error: EPERM, operation not permitted 'C:\Users\Im ad\myapp\www\js\openfb.js___jb_old___1' server start error: Error: EPERM, operation not permitted 'C:\Users\Imad\myapp\w ww\js\openfb.js___jb_old___1' at Error (native) at Object.fs.statSync (fs.js:797:18) at Gaze._addToWatched (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\ node_modules\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_ modules\gaze\lib\gaze.js:277:14) at Gaze.add (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modul es\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\ga ze\lib\gaze.js:175:8) at new Gaze (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modul es\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\ga ze\lib\gaze.js:74:10) at gaze (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\i onic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\gaze\l ib\gaze.js:86:10) at Object.module.exports [as watch] (C:\Users\Imad\AppData\Roaming\npm\node_ modules\ionic\node_modules\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob -watcher\index.js:12:17) at Object.runLivereload (C:\Users\Imad\AppData\Roaming\npm\node_modules\ioni c\node_modules\ionic-app-lib\lib\serve.js:286:9) at Object.start (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_m odules\ionic-app-lib\lib\serve.js:501:38) at C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\lib\ionic\serve.js:6 9:20 at _fulfilled (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_mod ules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\Imad\AppData\Roaming\npm\node_modules \ionic\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\Imad\AppData\Roaming\npm\node_m odules\ionic\node_modules\q\q.js:749:13) at C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js: 557:44 at flush (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\ q\q.js:108:17) at process._tickCallback (node.js:355:11) at Function.Module.runMain (module.js:503:11) at startup (node.js:129:16) at node.js:814:3 There was an error serving your Ionic application: server start error: Error: EP ERM, operation not permitted 'C:\Users\Imad\myapp\www\js\openfb.js___jb_old___1'

at Error (native)
at Object.fs.statSync (fs.js:797:18)
at Gaze._addToWatched (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\

node_modules\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_ modules\gaze\lib\gaze.js:277:14) at Gaze.add (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modul es\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\ga ze\lib\gaze.js:175:8) at new Gaze (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modul es\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\ga ze\lib\gaze.js:74:10) at gaze (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\i onic-app-lib\node_modules\vinyl-fs\node_modules\glob-watcher\node_modules\gaze\l ib\gaze.js:86:10) at Object.module.exports [as watch] (C:\Users\Imad\AppData\Roaming\npm\node_ modules\ionic\node_modules\ionic-app-lib\node_modules\vinyl-fs\node_modules\glob -watcher\index.js:12:17) at Object.runLivereload (C:\Users\Imad\AppData\Roaming\npm\node_modules\ioni c\node_modules\ionic-app-lib\lib\serve.js:286:9) at Object.start (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_m odules\ionic-app-lib\lib\serve.js:501:38) at C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\lib\ionic\serve.js:6 9:20 at _fulfilled (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_mod ules\q\q.js:787:54) at self.promiseDispatch.done (C:\Users\Imad\AppData\Roaming\npm\node_modules \ionic\node_modules\q\q.js:816:30) at Promise.promise.promiseDispatch (C:\Users\Imad\AppData\Roaming\npm\node_m odules\ionic\node_modules\q\q.js:749:13) at C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js: 557:44 at flush (C:\Users\Imad\AppData\Roaming\npm\node_modules\ionic\node_modules\ q\q.js:108:17) at process._tickCallback (node.js:355:11) at Function.Module.runMain (module.js:503:11) at startup (node.js:129:16) at node.js:814:3

最佳答案

该帖子建议运行此命令以增加可用 watch 的数量。 从您的终端 ass root 运行此命令行并且可以正常工作 echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

关于node.js - JS 文件更改后出现奇怪的 Ionic CLI 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32946223/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com