Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

以下内容エラーの解決方法を教えて頂けないでしょうか

MkDocs を使って Makdown から出力した HTML を、 NW.js の実行ファイルから起動できるように
したいと思っています。
npm run build を実行してファイルを生成する箇所で以下の内容のエラーが発生します。
解決方法を教えて頂きたいです。

image.png

実行するpackage.json内のソース

{
  "name": "mkdocsnativeapphelpexample",
  "version": "1.0.0",
  "description": "help example.",
  "scripts": {
    "build": "run-s build:mkdocs build:app",
    "build:mkdocs": "poetry run mkdocs build",
    "build:app": "nwbuild -p win64 site",
    "dev": "run-s build:mkdocs dev:nw",
    "dev:nw": "nw site"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lriki/MKDocsNativeAppHelpExample.git"
  },
  "author": "lriki",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/lriki/MKDocsNativeAppHelpExample/issues"
  },
  "homepage": "https://github.com/lriki/MKDocsNativeAppHelpExample#readme",
  "devDependencies": {
    "cpx": "^1.5.0",
    "npm-run-all": "^4.1.5",
    "nw": "^0.73.0",
    "nw-builder": "^4.10.0"
  }
}


0

1Answer

nwbuild -p win64 site

のコマンドでエラーが発生しているようです。
NW.jsのmanifest file
src/package.json(おそらく)
が存在しないか、バージョンがないというエラーと表示されています。

0Like

Your answer might help someone💌