Error: ENOENT: there is no such file or directory, open '/root/.ionic/daemon.log'

I had this error in Windows 10, I did a new install of Ubuntu on top of windows, erasing everything, still ... after I downloaded the latest version of nodejs and the latest version with ion and cord version, I get this error when I trying to use ionic. as?!?!?!?!

ionic information [WARN] You are not in the Ionic project directory. The project context may be missing.

cli packages: (/ usr / lib / node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

System:

Node : v8.6.0
npm  : 5.3.0 
OS   : Linux 4.10
+4
source share
2 answers

I ran into the same problem as you, but I took these steps and it worked.

  • Type npm cache cleanand press Enter.
  • Type sudo npm install -g npmand press Enter.
  • npm install Enter. ( )

, npm update .

+2

, Docker, Ubuntu ( Linux).

daemon.log, , -, . daemon.log, .

:

mkdir -p /root/.ionic
touch /root/.ionic/daemon.log

Ionic CLI .

0

Source: https://habr.com/ru/post/1686651/


All Articles