我试图运行在docs / getting中给出的样本,但一直抛出以下错误(尝试使用不同的Windows框)。
ember generate cordova-init com.poeticsystems.hello --platform=android
Path: platforms\android
Package: com.poeticsystems.hello
Name: Hello
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.1.1
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the
project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater
than 4.0. If you have a previous platform version, you do *not* need
this plugin since the whitelist will be built in.
Adding android platform to cordova...
Update config.xml with your project settings...EPERM: operation not
permitted, symlink '..\dist' -> 'N:\DEV\ember-cordova\hello\cordova\www'
Error: EPERM: operation not permitted, symlink '..\dist' -> 'N:\DEV\ember
cordova\hello\cordova\www'
at Error (native)
os:win32 x64 节点 - 4.4.2 npm - 2.15.0 ember-cli:2.4.3 cordova - 6.5.0 ember-cli-cordova:0.1.0-β-2
我已将locationType的值修改为' hash'。 任何人都可以帮忙解决这个问题。
答案 0 :(得分:0)
错误:EPERM:不允许操作
这表示有许可问题。主要是在Windows中,如果我们cmd
运行Run as Administrator
将解决这些问题。