Problems running the ripple emulator on Visual Studio 2013

本小妞迷上赌 提交于 2019-12-09 05:25:27

问题


I am trying to run the ripple emulator on Visual Studio, however I cannot seem to get pass the cannot find module './lib/plugin'error as follows:

C:\Users[user name]\Documents\Visual Studio 2013\Projects\Cordova\Cordova>call "C:\Program Files (x86)\nodejs\"\nodevars.bat

Your environment has been set up for using Node.js 0.10.33 (ia32) and npm. ------ Ensuring correct global installation of package from source package directory: E:\PROGRAM FILES (X86)\VISUAL STUDIO\COMMON7\IDE\EXTENSIONS\FUBXMEK2.O2B\packages\vs-mda 1>MDAVSCLI : error : Cannot find module './lib/plugin'

PS: The previous error I got was cannot find module 'q' however this was resolved by running npm install from CLI.

I am trying to create a Cordova application using Visual Studio. Any ideas how I can resolve the above error?


回答1:


It seems something went wrong while installing vs-mda, you can try following to re-install:

  1. Close Visual Studio
  2. Open cmd
  3. npm install -g [path to vs-mda example C:\Users[user-name]\AppData\Roaming\npm\node_modules\vs-mda]
  4. npm install -g [path to vs-mda-targets example C:\Users[user-name]\AppData\Roaming\npm\node_modules\vs-mda-targets]

OR

  1. Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache




回答2:


For the second method above (Clear Cordova Data) try running visual studio as administrator if it fails the first time around.



来源:https://stackoverflow.com/questions/26981782/problems-running-the-ripple-emulator-on-visual-studio-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!