hexonpmのインストールに関するGit2.20の問題:コマンドが見つかりません



Git 2 20 Problems With Installing Hexo Npm



hexonpmのインストールに関するGit2.20の問題:コマンドが見つかりません


今日、hexoのインストールに問題があります。私のGitとnodejsはDドライブの下にインストールされています。ここでGitbashを介してhexoをインストールすることに問題があります。以下に解決策を書いてください。

インストールパスの下のDドライブでGitBashを開きます

画像

開いているインターフェイスにコードを入力します。

1、hexoをインストールします

/ / Install hexo root@xxxxx-pc MINGW64 / $ npm install hexo-cli -g //operation result C:UsershpAppDataRoaming pmhexo -> C:UsershpAppDataRoaming pm ode_moduleshexo-cliinhexo npm WARN optional SKIPPING OPTIONAL DEPENDENCY: root@xxxxx1.2.7 (node_moduleshexo-cli ode_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for root@xxxxx1.2.7: wanted {'os':'darwin','arch':'any'} (current: {'os':'win32','arch':'x64'})

2.HexoをGitページのデプロイヤーにデプロイします

//hexo deployment root@xxxxx-pc MINGW64 / $ npm install hexo-deployer-git //operation result npm WARN saveError ENOENT: no such file or directory, open 'D:MyblogGitpackage.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open 'D:MyblogGitpackage.json' npm WARN babel-root@xxxxx10.0.1 requires a peer of root@xxxxx>= 4.12.1 but none is installed. You must install peer dependencies yourself. npm WARN Git No description npm WARN Git No repository field. npm WARN Git No README data npm WARN Git No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: root@xxxxx1.2.7 (node_modulesfsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for root@xxxxx1.2.7: wanted {'os':'darwin','arch':'any'} (current: {'os':'win32','arch':'x64'}) + hexo-deployer-root@xxxxx1.0.0 added 204 packages from 400 contributors and audited 2254 packages in 15.598s found 0 vulnerabilities

次のようにnpmフォルダーコードをダウンロードします。

// download the npm file to the desktop root@xxxxx-pc MINGW64 ~/Desktop $ git clone --recursive git://github.com/isaacs/npm.git //operation result Cloning into 'npm'... remote: Enumerating objects: 21, done. remote: Total 21 (delta 0), reused 0 (delta 0), pack-reused 21 Receiving objects: 100% (21/21), 17.87 KiB | 99.00 KiB/s, done. Resolving deltas: 100% (2/2), done.

参照ブログアドレスは次のとおりです。
1、 https://blog.csdn.net/grave2015/article/details/79961843
二、 https://blog.csdn.net/daocaoren92wq/article/details/64444532