[英]Ionic Serve Command gives an error
I am Devolping a mobile application using ionic framework. 我正在开发使用离子框架的移动应用程序。
When I run the command ionic server, the it throws this error: 当我运行命令离子服务器时,它将引发此错误:
/deps/uv/src/unix/stream.c:494: uv__server_io: Assertion `events == 1' failed
Can you help? 你能帮我吗?
This looks like an error with your Node. 这似乎是您的Node的错误。 Try the following commands first to see if your errors get solved:
首先尝试以下命令,看看您的错误是否得到解决:
sudo npm install npm -g
sudo npm cache clean -f
sudo npm install node -g
This will update your NPM (Node.js' package manager) if not already updated. 如果尚未更新,这将更新您的NPM(Node.js的程序包管理器)。
If that won't work, I'd recommend a re-install: 如果那行不通,我建议重新安装:
sudo npm uninstall node
sudo apt-get purge npm
sudo apt-get install npm
sudo npm install node -g
Let me know if you face issues in the process. 如果您在此过程中遇到问题,请告诉我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.