使用cordova
一、
C:\Users>npm -v 6.14.8
C:\Users>npm install -g cordova npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm WARN deprecated stringify-package@1.
C:\Users>cordova -v ? May Cordova anonymously report usage statistics to improve the tool over time? Yes Thanks for opting into telemetry to help us improve cordova. 12.0.0 (cordova-lib@12.0.1)
C:\Users>cordova create HelloCordova io.hellocordova CordovaApp Creating a new cordova project.
C:\Users>cd HelloCordova C:\Users\HelloCordova>cordova platform add browser Using cordova-fetch for cordova-browser fs.rmSync is not a function
C:\Users\HelloCordova>cordova platform add android --save
Using cordova-fetch for cordova-android
fs.rmSync is not a function
添加插件的命令
E:\code-demo\web-code\HelloCordova>cordova plugin add cordova-plugin-file
C:\Users\HelloCordova>cordova platform ls
Installed platforms:
Available platforms:
android
browser
electron
术到极致,几近于道。
有道无术,可以求术;
有术无道,止于术矣。