Msgstr "Error caused by cmd ENOENT" in the ion command (android ion build command)

I am creating an application using an ionic structure. when I execute the Android Ion Collector command, it shows the following message.

C:\Windows\System32\todo>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Windows\System32\todo\hooks\after_prepare\010_add_platform_class.js C:\Windows\System32\todo
add to body class: platform-android
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk\
JAVA_HOME=C:\Program Files\java\jdk1.8.0_66

Error: spawn cmd ENOENT

I run it on a windows 7 system using node.js command line

I have googled but have not found a useful solution. Helped Plesha. thanks in advance

+4
source share
1 answer

This problem may be caused by the fact that the current npm path (C: \ Users \\ AppData \ Roaming \ npm) is not specified in the environment variable.

0
source

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


All Articles