Docz: 新安装失败,并显示错误:无法找到插件“ gatsby-theme-docz”。

创建于 2019-08-29  ·  40评论  ·  资料来源: doczjs/docz

错误报告

描述错误

新安装失败,并显示错误:无法找到插件“ gatsby-theme-docz”。

清楚简明地描述错误是什么。

我将docz添加到现有项目yarn add docz<strong i="11">@next</strong> -D
然后,我添加一个mdx文件并运行yarn docz dev ,它会产生错误消息:

意外拒绝无法找到插件“ gatsby-theme-docz”。 也许您需要安装其软件包?

错误:找不到插件“ gatsby-theme-docz”。 也许您需要安装其软件包?

λ yarn docz dev
yarn run v1.13.0
$ C:\Users\riha\Documents\webui\node_modules\.bin\docz dev
info No lockfile found.
[1/4] Resolving packages...
warning @types/[email protected]: This is a stub types definition. query-string provides its own type definitions, so you do not need this installed.
error Package "check-line-coverage" refers to a non-existing file '"C:\\Users\\riha\\Documents\\webui\\.docz\\tools\\check-line-coverage"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
√ Dependencies checked!

Building app
$ gatsby develop --port 3001
success open and validate gatsby-configs - 0.139 s

 ERROR

UNHANDLED REJECTION Unable to find plugin "gatsby-theme-docz". Perhaps you need to install its package?



  Error: Unable to find plugin "gatsby-theme-docz". Perhaps you need to install its package?

  - load.js:109 resolvePlugin
    [webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:109:11

  - load.js:152 processPlugin
    [webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:152:20

  - load.js:171 config.plugins.forEach.plugin
    [webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:171:20

  - Array.forEach

  - load.js:170 module.exports
    [webui]/[gatsby]/dist/bootstrap/load-plugins/load.js:170:20

  - index.js:58 module.exports
    [webui]/[gatsby]/dist/bootstrap/load-plugins/index.js:58:19

  - index.js:138 module.exports
    [webui]/[gatsby]/dist/bootstrap/index.js:138:34


⠋ load plugins
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

为了使我们能够快速复制您的期刊,请提供一个复制库链接。

我不能那样做,因为它是一个工作项目。

预期行为

它加载并工作!

简洁明了地描述您期望发生的事情。

环境

  • 作业系统:[Windows 10]
  • 节点/ npm版本:[v10.16.3]

其他上下文/屏幕截图
在此处添加有关该问题的任何其他上下文。 如果适用,请添加屏幕截图以帮助说明。

bug v2

所有40条评论

我不确定为什么会这样,我无法在本地复制。

您能否删除node_modules和.docz缓存,然后重试?

rm -rf ./node_modules ./.docz && yarn install && yarn dev

有关您的项目的一些问题:

是在纱线工作区还是lerna工作区中?

它使用盖茨比吗?

我不确定为什么会这样,我无法在本地复制。

您能否删除node_modules和.docz缓存,然后重试?

rm -rf ./node_modules ./.docz && yarn install && yarn dev

有关您的项目的一些问题:

是在纱线工作区还是lerna工作区中?

它使用盖茨比吗?

我试过删除两个node_modules和.docz文件都无济于事。

该项目是一个React Typescript项目。 我们用纱。 我还没有建立一个工作区,因为我的印象是我可以只添加docz,然后在组件旁边添加mdx文件,并且it would just work我确实得到了一个版本并作为一个单独的项目运行,但是整个过程我做这些文档的原因是,我可以使用我们在项目中使用的实际组件,因此我认为我可以在项目中添加docz。

我们不使用盖茨比。

只是抬起头,我升级到"docz": "^2.0.0-rc.8" ,我仍然看到此错误。

更多背景信息:

我添加了docz": "^2.0.0-rc.8[email protected]和1个mdx文件。 我还没有添加doczrc.js或其他任何东西。

著名的 !

您介意在package.json中共享其他依赖项吗?

或者(甚至更好)也许是一个带有此问题的复制品的小型回购协议?

不幸的是,我不能共享该仓库,但可以共享我们的package.json。 :

{
  "name": "incenter-webui",
  "version": "0.1.0",
  "description": "InCenter Web User Interface",
  "main": "none",
  "private": true,
  "scripts": {
    "test": "yarn run license-check && yarn typecheck && cross-env CONFIG_ENV=test jest --coverage && yarn line-coverage",
    "update-snapshot": "cross-env CONFIG_ENV=test jest -u",
    "lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less",
    "fix-src": "./node_modules/.bin/eslint \"src/**/*.{ts,tsx,js}\" --fix",
    "fix-less": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" --fix",
    "fix-tests": "./node_modules/.bin/eslint \"__tests__/**/*.{ts,tsx,js}\" --fix",
    "line-coverage": "node ./node_modules/check-line-coverage \"coverage/clover.xml\" \"80\"",
    "bamboo-lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" -f node_modules/eslint-bamboo-formatter/reporter.js && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less --custom-formatter node_modules/stylelint-mocha-formatter/index.js > stylelint.json || true",
    "dev": "cross-env OEM=incenter webpack-dev-server --inline -d",
    "dev-production": "cross-env NODE_ENV=production webpack-dev-server --inline --mode=production --devtool 'source-map' --progress",
    "build": "cross-env NODE_ENV=production webpack -p",
    "build-dev": "cross-env NODE_ENV=development webpack --mode=production --devtool 'source-map' --progress",
    "build-watch": "webpack --watch --devtool 'source-map' --mode=production --progress",
    "test:watch": "jest --watchAll",
    "typecheck": "tsc --noEmit -p .",
    "license-check": "node ./node_modules/@clavister/license-check/licenseCheck.js --verify --paths=. -o=missingLicenses.json",
    "analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",
    "eslint-check-rules": "./node_modules/.bin/eslint --print-config . | eslint-config-prettier-check",
    "pretty-check": "prettier --check \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
    "pretty": "prettier --write \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\""
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{js,ts,tsx}": [
      "yarn pretty-check",
      "git add"
    ],
    "src/**/*.{less,css}": [
      "stylelint --fix",
      "git add"
    ]
  },
  "repository": {
    "type": "git",
    "url": "ssh://[email protected]:7999/ems/webui.git"
  },
  "keywords": [
    "incenter",
    "webui"
  ],
  "author": "Clavister",
  "license": "CLAVISTER",
  "dependencies": {
    "@clavister/configuration-categories": "^1.0.0",
    "@clavister/globalObjectsWhitelist": "^1.0.2",
    "@clavister/socketEvent": "^2.0.4",
    "@types/enzyme": "^3.1.6",
    "@types/file-saver": "^1.3.0",
    "@types/jest": "^21.1.3",
    "@types/jsonwebtoken": "^8.3.0",
    "@types/memoize-one": "^4.1.0",
    "@types/mousetrap": "^1.5.34",
    "@types/node": "^11.10.4",
    "@types/query-string": "^6.1.0",
    "@types/react": "^16.9.2",
    "@types/react-dom": "^16.9.0",
    "@types/react-grid-layout": "^0.14.3",
    "@types/react-redux": "^6.0.6",
    "@types/react-router-dom": "^4.0.7",
    "@types/react-virtualized": "^9.7.4",
    "@types/redux-mock-store": "^1.0.0",
    "@types/rison": "^0.0.6",
    "@types/shallowequal": "^1.1.1",
    "@types/webpack-env": "^1.13.7",
    "fast-deep-equal": "^2.0.1",
    "file-saver": "^1.3.8",
    "focus-trap-react": "^3.1.2",
    "js-logger": "^1.4.1",
    "jsonwebtoken": "^8.0.1",
    "memoize-one": "^5.0.0",
    "mousetrap": "^1.6.1",
    "prop-types": "^15.6.2",
    "query-string": "^6.1.0",
    "react": "~16.9.0 ",
    "react-cookie": "2.2.0",
    "react-dom": "~16.9.0",
    "react-grid-layout": "^0.15.3",
    "react-markdown": "^4.0.6",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.2.2",
    "react-sizeme": "^2.5.2",
    "react-virtualized": "^9.10.1",
    "redux": "^4.0.0",
    "redux-store-observer": "^1.0.0",
    "redux-thunk": "^2.3.0",
    "reselect": "^3.0.1",
    "rison": "^0.1.1",
    "scheduler": "0.15.0",
    "semantic-ui-less": "^2.3.3",
    "semantic-ui-react": "^0.83.0",
    "shallowequal": "^1.1.0",
    "toml": "^3.0.0",
    "tslib": "^1.9.3",
    "typeface-open-sans": "^0.0.54"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/plugin-proposal-class-properties": "^7.0.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-react": "^7.0.0",
    "@clavister/license-check": "^1.0.0",
    "@svgr/webpack": "^4.1.0",
    "@typescript-eslint/eslint-plugin": "^1.7.0",
    "@typescript-eslint/parser": "^1.7.0",
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "^10.0.0",
    "babel-jest": "^24.1.0",
    "babel-loader": "^8.0.2",
    "babel-plugin-js-logger": "^1.0.16",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "check-line-coverage": "file:tools/check-line-coverage",
    "cross-env": "^3.2.4",
    "css-loader": "^1.0.0",
    "docz": "^2.0.0-rc.8",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.0",
    "eslint": "^5.16.0",
    "eslint-bamboo-formatter": "^0.1.0",
    "eslint-config-prettier": "^4.2.0",
    "eslint-loader": "^2.1.1",
    "eslint-plugin-import": "^2.17.2",
    "eslint-plugin-jsdoc": "^4.8.3",
    "eslint-plugin-no-null": "^1.0.2",
    "eslint-plugin-prefer-arrow": "^1.1.5",
    "eslint-plugin-prettier": "^3.0.1",
    "eslint-plugin-promise": "^4.1.1",
    "eslint-plugin-react": "^7.12.4",
    "eslint-plugin-react-hooks": "^1.0.1",
    "file-loader": "^2.0.0",
    "fork-ts-checker-webpack-plugin": "^0.5.2",
    "html-webpack-plugin": "^3.2.0",
    "husky": "^1.2.0",
    "identity-obj-proxy": "^3.0.0",
    "jest": "^24.1.0",
    "jest-bamboo-formatter": "^1.0.1",
    "jest-enzyme": "^7.0.1",
    "jest-fetch-mock": "^1.6.6",
    "jest-localstorage-mock": "^2.2.0",
    "json-loader": "^0.5.4",
    "less": "^3.9.0",
    "less-loader": "^4.1.0",
    "lint-staged": "^8.1.5",
    "mini-css-extract-plugin": "^0.5.0",
    "mock-socket": "^8.0.4",
    "nock": "^9.0.14",
    "prettier": "^1.17.0",
    "redux-mock-store": "^1.5.3",
    "style-loader": "^0.23.0",
    "stylelint": "^9.10.1",
    "stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
    "svgo": "^1.2.0",
    "svgo-loader": "^2.2.0",
    "ts-jest": "^24.0.0",
    "ts-loader": "^5.3.3",
    "typescript": "~3.4.3",
    "typings-for-css-modules-loader": "^1.5.0",
    "url-loader": "^1.1.1",
    "webpack": "^4.20.2",
    "webpack-bundle-analyzer": "^3.0.4",
    "webpack-cli": "^3.1.1",
    "webpack-dev-server": "^3.1.11",
    "yml-loader": "^2.1.0"
  },
  "jest": {
    "moduleNameMapper": {
      "app.yml": "<rootDir>/__mocks__/appConfigMock.js",
      "\\.(css|less)$": "identity-obj-proxy"
    },
    "transform": {
      "^.+[\\\\|\\/]assets[\\\\|\\/]icons[\\\\|\\/].+\\.svg$": "<rootDir>/__transforms__/iconFileTransform.js",
      "^.+\\.(svg|jpg|jpeg|png)$": "<rootDir>/__transforms__/filePathTransform.js"
    },
    "transformIgnorePatterns": [
      "<rootDir>/node_modules"
    ],
    "modulePaths": [
      "<rootDir>/src",
      "<rootDir>"
    ],
    "testMatch": [
      "**/__tests__/**/*.(spec|test).(js|jsx|ts|tsx)"
    ],
    "collectCoverageFrom": [
      "**/src/**/*.{js,jsx,ts,tsx}",
      "!**/src/**/*.d.ts",
      "!**/node_modules/**",
      "!**/src/domain/gateway/mockGateways.ts"
    ],
    "moduleFileExtensions": [
      "js",
      "json",
      "jsx",
      "ts",
      "tsx"
    ],
    "setupFilesAfterEnv": [
      "<rootDir>/jestSetup.js"
    ],
    "collectCoverage": false,
    "testResultsProcessor": "<rootDir>/node_modules/jest-bamboo-formatter",
    "snapshotSerializers": [
      "enzyme-to-json/serializer"
    ],
    "setupFiles": [
      "jest-localstorage-mock",
      "raf/polyfill"
    ],
    "preset": "ts-jest/presets/js-with-ts"
  }
}

嘿! 只是想知道你们是否有机会对此进行调查? 我知道您正忙于其他问题...

@molebox

是的,我已经研究了它并能够复制它,应该用[email protected]解决它,但是您的问题可能与我的复制问题有所不同。

你可以试试看吗?

rm -rf .docz && yarn add docz<strong i="10">@next</strong> && yarn docz dev

如果仍然发生,您还可以提供.docz/package.json文件吗?

并尝试: cd .docz/ && yarn && yarn dev

@rakannimer

感谢您对此进行调查,我们非常希望在我们公司开始并运行它。

不幸的是,它仍然无法正常工作并显示相同的错误。 当我运行rm -rf .docz && yarn add docz<strong i="8">@next</strong> && yarn docz dev ,出现以下问题:

docz error

这是.docz/package.json

    {
  "name": "incenter-webui",
  "version": "0.1.0",
  "description": "InCenter Web User Interface",
  "main": "none",
  "private": true,
  "scripts": {
    "test": "yarn run license-check && yarn typecheck && cross-env CONFIG_ENV=test jest --coverage && yarn line-coverage",
    "update-snapshot": "cross-env CONFIG_ENV=test jest -u",
    "lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less",
    "fix-src": "./node_modules/.bin/eslint \"src/**/*.{ts,tsx,js}\" --fix",
    "fix-less": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" --fix",
    "fix-tests": "./node_modules/.bin/eslint \"__tests__/**/*.{ts,tsx,js}\" --fix",
    "line-coverage": "node ./node_modules/check-line-coverage \"coverage/clover.xml\" \"80\"",
    "bamboo-lint": "./node_modules/.bin/eslint \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\" -f node_modules/eslint-bamboo-formatter/reporter.js && stylelint \"src/**/*.{less,css}\" \"assets/**/*.{less,css,config,variables,overrides}\" --syntax=less --custom-formatter node_modules/stylelint-mocha-formatter/index.js > stylelint.json || true",
    "dev": "gatsby develop",
    "dev-production": "cross-env NODE_ENV=production webpack-dev-server --inline --mode=production --devtool 'source-map' --progress",
    "build": "gatsby build",
    "build-dev": "cross-env NODE_ENV=development webpack --mode=production --devtool 'source-map' --progress",
    "build-watch": "webpack --watch --devtool 'source-map' --mode=production --progress",
    "test:watch": "jest --watchAll",
    "typecheck": "tsc --noEmit -p .",
    "license-check": "node ./node_modules/@clavister/license-check/licenseCheck.js --verify --paths=. -o=missingLicenses.json",
    "analyze": "cross-env NODE_ENV=production ANALYZE=true webpack -p",
    "eslint-check-rules": "./node_modules/.bin/eslint --print-config . | eslint-config-prettier-check",
    "pretty-check": "prettier --check \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
    "pretty": "prettier --write \"src/**/*.less.d.ts\" \"src/**/*.{ts,tsx,js}\" \"__tests__/**/*.{ts,tsx,js}\"",
    "serve": "gatsby serve"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{js,ts,tsx}": [
      "yarn pretty-check",
      "git add"
    ],
    "src/**/*.{less,css}": [
      "stylelint --fix",
      "git add"
    ]
  },
  "repository": {
    "type": "git",
    "url": "ssh://[email protected]:7999/ems/webui.git"
  },
  "keywords": [
    "incenter",
    "webui"
  ],
  "author": "Clavister",
  "license": "CLAVISTER",
  "dependencies": {
    "@clavister/configuration-categories": "^1.0.0",
    "@clavister/globalObjectsWhitelist": "^1.0.2",
    "@clavister/socketEvent": "^2.0.4",
    "@types/enzyme": "^3.1.6",
    "@types/file-saver": "^1.3.0",
    "@types/jest": "^21.1.3",
    "@types/jsonwebtoken": "^8.3.0",
    "@types/memoize-one": "^4.1.0",
    "@types/mousetrap": "^1.5.34",
    "@types/node": "^11.10.4",
    "@types/query-string": "^6.1.0",
    "@types/react": "^16.9.2",
    "@types/react-dom": "^16.9.0",
    "@types/react-grid-layout": "^0.14.3",
    "@types/react-redux": "^6.0.6",
    "@types/react-router-dom": "^4.0.7",
    "@types/react-virtualized": "^9.7.4",
    "@types/redux-mock-store": "^1.0.0",
    "@types/rison": "^0.0.6",
    "@types/shallowequal": "^1.1.1",
    "@types/webpack-env": "^1.13.7",
    "fast-deep-equal": "^2.0.1",
    "file-saver": "^1.3.8",
    "focus-trap-react": "^3.1.2",
    "js-logger": "^1.4.1",
    "jsonwebtoken": "^8.0.1",
    "memoize-one": "^5.0.0",
    "mousetrap": "^1.6.1",
    "prop-types": "^15.6.2",
    "query-string": "^6.1.0",
    "react": "~16.9.0 ",
    "react-cookie": "2.2.0",
    "react-dom": "~16.9.0",
    "react-grid-layout": "^0.15.3",
    "react-markdown": "^4.0.6",
    "react-redux": "^5.0.7",
    "react-router-dom": "^4.2.2",
    "react-sizeme": "^2.5.2",
    "react-virtualized": "^9.10.1",
    "redux": "^4.0.0",
    "redux-store-observer": "^1.0.0",
    "redux-thunk": "^2.3.0",
    "reselect": "^3.0.1",
    "rison": "^0.1.1",
    "semantic-ui-less": "^2.3.3",
    "semantic-ui-react": "^0.83.0",
    "shallowequal": "^1.1.0",
    "toml": "^3.0.0",
    "tslib": "^1.9.3",
    "typeface-open-sans": "^0.0.54",
    "gatsby": "2.15.6",
    "gatsby-plugin-typescript": "2.1.6",
    "gatsby-plugin-eslint": "2.0.5",
    "gatsby-theme-docz": "^2.0.0-rc.31"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/plugin-proposal-class-properties": "^7.0.0",
    "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
    "@babel/preset-env": "^7.1.0",
    "@babel/preset-react": "^7.0.0",
    "@clavister/license-check": "^1.0.0",
    "@svgr/webpack": "^4.1.0",
    "@typescript-eslint/eslint-plugin": "^1.7.0",
    "@typescript-eslint/parser": "^1.7.0",
    "babel-core": "^7.0.0-bridge.0",
    "babel-eslint": "^10.0.0",
    "babel-jest": "^24.1.0",
    "babel-loader": "^8.0.2",
    "babel-plugin-js-logger": "^1.0.16",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "check-line-coverage": "file:tools/check-line-coverage",
    "cross-env": "^3.2.4",
    "css-loader": "^1.0.0",
    "docz": "^2.0.0-rc.31",
    "enzyme": "^3.3.0",
    "enzyme-adapter-react-16": "^1.1.1",
    "enzyme-to-json": "^3.3.0",
    "eslint": "^5.16.0",
    "eslint-bamboo-formatter": "^0.1.0",
    "eslint-config-prettier": "^4.2.0",
    "eslint-loader": "^2.1.1",
    "eslint-plugin-import": "^2.17.2",
    "eslint-plugin-jsdoc": "^4.8.3",
    "eslint-plugin-no-null": "^1.0.2",
    "eslint-plugin-prefer-arrow": "^1.1.5",
    "eslint-plugin-prettier": "^3.0.1",
    "eslint-plugin-promise": "^4.1.1",
    "eslint-plugin-react": "^7.12.4",
    "eslint-plugin-react-hooks": "^1.0.1",
    "file-loader": "^2.0.0",
    "fork-ts-checker-webpack-plugin": "^0.5.2",
    "html-webpack-plugin": "^3.2.0",
    "husky": "^1.2.0",
    "identity-obj-proxy": "^3.0.0",
    "jest": "^24.1.0",
    "jest-bamboo-formatter": "^1.0.1",
    "jest-enzyme": "^7.0.1",
    "jest-fetch-mock": "^1.6.6",
    "jest-localstorage-mock": "^2.2.0",
    "json-loader": "^0.5.4",
    "less": "^3.9.0",
    "less-loader": "^4.1.0",
    "lint-staged": "^8.1.5",
    "mini-css-extract-plugin": "^0.5.0",
    "mock-socket": "^8.0.4",
    "nock": "^9.0.14",
    "prettier": "^1.17.0",
    "redux-mock-store": "^1.5.3",
    "style-loader": "^0.23.0",
    "stylelint": "^9.10.1",
    "stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
    "svgo": "^1.2.0",
    "svgo-loader": "^2.2.0",
    "ts-jest": "^24.0.0",
    "ts-loader": "^5.3.3",
    "typescript": "~3.4.3",
    "typings-for-css-modules-loader": "^1.5.0",
    "url-loader": "^1.1.1",
    "webpack": "^4.20.2",
    "webpack-bundle-analyzer": "^3.0.4",
    "webpack-cli": "^3.1.1",
    "webpack-dev-server": "^3.1.11",
    "yml-loader": "^2.1.0"
  },
  "jest": {
    "moduleNameMapper": {
      "app.yml": "<rootDir>/__mocks__/appConfigMock.js",
      "\\.(css|less)$": "identity-obj-proxy"
    },
    "transform": {
      "^.+[\\\\|\\/]assets[\\\\|\\/]icons[\\\\|\\/].+\\.svg$": "<rootDir>/__transforms__/iconFileTransform.js",
      "^.+\\.(svg|jpg|jpeg|png)$": "<rootDir>/__transforms__/filePathTransform.js"
    },
    "transformIgnorePatterns": [
      "<rootDir>/node_modules"
    ],
    "modulePaths": [
      "<rootDir>/src",
      "<rootDir>"
    ],
    "testMatch": [
      "**/__tests__/**/*.(spec|test).(js|jsx|ts|tsx)"
    ],
    "collectCoverageFrom": [
      "**/src/**/*.{js,jsx,ts,tsx}",
      "!**/src/**/*.d.ts",
      "!**/node_modules/**",
      "!**/src/domain/gateway/mockGateways.ts"
    ],
    "moduleFileExtensions": [
      "js",
      "json",
      "jsx",
      "ts",
      "tsx"
    ],
    "setupFilesAfterEnv": [
      "<rootDir>/jestSetup.js"
    ],
    "collectCoverage": false,
    "testResultsProcessor": "<rootDir>/node_modules/jest-bamboo-formatter",
    "snapshotSerializers": [
      "enzyme-to-json/serializer"
    ],
    "setupFiles": [
      "jest-localstorage-mock",
      "raf/polyfill"
    ],
    "preset": "ts-jest/presets/js-with-ts"
  }
}

它看起来与当前项目的package.json相同。...对吗? 它应该复制过来吗?

我只是对我们的项目做了一个干净的分支,先运行了yarn add docz<strong i="6">@next</strong> -D然后运行了yarn docz dev它没有用,所以我添加了一个doczrc.js文件并复制了打字稿示例。 我还在当前项目中添加了一个mdx文件,其路由设置为/

希望此信息对您有所帮助,希望您能正常工作!

哎呀,对不起,格式化! 我如何向内标记代码?

您能否尝试(暂时)删除主要package.json所有本地软件包?

本地软件包是具有文件系统路径的软件包,而不是具有以下版本的软件包:

{
    "check-line-coverage": "file:tools/check-line-coverage",
    "stylelint-mocha-formatter": "file:tools/stylelint-mocha-formatter",
}

然后运行:

rm -rf .docz && yarn docz dev

好的,所以删除这两个意味着错误消失了! 但是我在检查依赖项时看到另一个错误:

C:\ Users \ riha \ Documents \ webui(测试/文档->原点)
λyarn docz dev
纱线运行v1.13.0
$ C:\ Users \ riha \ Documents \ webuinode_modules.bin \ docz dev
浏览器列表:caniuse-lite已过时。 请运行下一条命令yarn upgrade caniuse-lite browserslist
信息找不到锁文件。
[1/4]正在解决包裹...
警告@ types / query-string @ 6.3.0:这是存根类型定义。 query-string提供了自己的类型定义,因此您不需要安装此类型。
警告gatsby> @ reach / router> create-react-context> fbjs> [email protected] :不再维护core-js @ <2.6.8。 请升级到core-js @ 3或至少升级到core-js
警告jest> jest-cli> jest-config> jest-environment-jsdom> jsdom> [email protected]:使用String.prototype.padStart()
[2/4]正在获取软件包...
信息[email protected]:平台“ win32”与此模块不兼容。
信息“ [email protected]”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。
信息[email protected]:平台“ win32”与此模块不兼容。
信息“ [email protected]”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。
[3/4]链接依赖项...
警告“ gatsby> [email protected]”具有不正确的对等依赖项“ [email protected]”。
警告“> [email protected] ”具有未满足的对等依赖项“ tslint@^4.0.0 || ^ 5.0.0”。
[4/4]建立新包装...
[-/ 6]⢀等待...
[-/ 6]⢀等待...
[-/ 6]⢀等待...
[-/ 6]⠠等待...
错误C:\ Users \ riha \ Documents \ webui.docznode_modules \ sharp:命令失败。
退出码:1
命令:(node install / libvips && node install / dll-copy && prebuild-install)|| (node-gyp重建&&节点安装/ dll-copy)
参数:
目录:C:\ Users \ riha \ Documents \ webui.docznode_modules \ sharp
输出:
信息锋利下载https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-win32-x64.tar.gz
C:\ Users \ riha \ Documents \ webui.docznode_modules \ sharp \ install \ libvips.js:82
抛出错误;
^

错误:连接ECONNREFUSED 140.82.118.3:443
在TCPConnectWrap.afterConnect上[作为oncomplete](net.js:1106:14)
gyp信息,如果以ok结尾,则可以正常工作
使用[email protected]的gyp信息
使用[email protected]的gyp信息| win32 | x64的

C:\ Users \ riha \ Documents \ webui.docznode_modules \ sharp>如果未定义npm_config_node_gyp(节点“ C:\ Program Filesnodejsnode_nodesmodules \ npm \ binnode-gyp-bin \ .... node_modulesnode-gyp \ binnode-gyp.js”重建),否则(节点“”重建)
gyp信息生成C:\ Python27 \ python.exe
gyp info spawn args ['C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ gyp \ gyp_main.py',
gyp info生成args'binding.gyp',
gyp信息生成参数'-f',
gyp info生成args'msvs',
gyp信息生成参数'-G',
gyp info spawn args'msvs_version = 2015',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Users \ riha \ Documents \ webui \ .docz \ node_modules \ sharp \ build \ config.gypi',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ addon.gypi',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Users \ riha \ .node-gyp \ 10.16.3 \ include \ node \ common.gypi',
gyp info spawn args'-Dlibrary = shared_library',
gyp info spawn args'-Dvisibility = default',
gyp info spawn args'-Dnode_root_dir = C:\ Users \ riha \ .node-gyp \ 10.16.3',
gyp info spawn args'-Dnode_gyp_dir = C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp',
gyp info spawn args'-Dnode_lib_file = C:\ Users \ riha \ .node-gyp \ 10.16.3 \ <(target_arch)\ node.lib',
gyp info spawn args'-Dmodule_root_dir = C:\ Users \ riha \ Documents \ webui \ .docz \ node_modules \ sharp',
gyp信息生成参数'-Dnode_engine = v8',
gyp info spawn args'--depth =。',
gyp info spawn args'--no-parallel',
gyp info spawn args'--generator-output',
gyp info spawn args'C:\ Users \ riha \ Documents \ webui \ .docz \ node_modules \ sharp \ build',
gyp info生成args'-Goutput_dir ='。 ]
gyp信息生成C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ msbuild.exe
gyp info spawn args ['build / binding.sln',
gyp info spawn args'/ clp:Verbosity = minimal ',
gyp info spawn args'/ nologo',
gyp info spawn args'/ p:Configuration = Release; Platform = x64']
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
VError.cpp
VInterpolate.cpp
VImage.cpp
win_delay_load_hook.cc
.. \ src \ libvips \ cplusplus \ VInterpolate.cpp(34):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webui。 docznode_modules \ sharp \ build \ libvips-cpp.vcxproj]
.. \ src \ libvips \ cplusplus \ VError.cpp(33):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webui。 docznode_modules \ sharp \ build \ libvips-cpp.vcxproj]
.. \ src \ libvips \ cplusplus \ VImage.cpp(41):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webui。 docznode_modules \ sharp \ build \ libvips-cpp.vcxproj]
哎呀! 建立错误
糟糕! 堆栈错误: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe失败,退出代码:1
糟糕! 堆栈在ChildProcess.onExit(C:\ Program Filesnodejsnode_nodesmodules \ npmnode_modulesnode-gyp \ lib \ build.js:262:23)
糟糕! 堆栈在ChildProcess.emit(events.js:198:13)
糟糕! 堆栈位于Process.ChildProcess._handle.onexit(internal / child_process.js:248:12)
糟糕! 系统Windows_NT 10.0.17763
糟糕! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
哎呀! CWD C:\ Users \ riha \ Documents \ webui.docznode_modules \ sharp

√检查依赖关系!

它的确建立但是我得到TypeError: Cannot read property 'frontmatter' of undefined

这是mdx文件:


名称:纽扣

路线: /

从“ docz”导入{游乐场,道具}
从'./Button'导入Button

我是一个按钮



这是doczrc.js:

导出默认值{
打字稿:是的,
标题:“ Docz Typescript”,
菜单:['入门'],
};

所以我的package.json上不能有任何本地包吗? 有文件的? 为Docz工作?

好的,所以它看起来像是即时启动并正在运行! 我只是与此前题错误有关的问题,但现在正在加载docz。

一旦知道为什么我不能使用package.json中的本地包,我将关闭此问题。 再次感谢您的所有帮助! :)

所以我的package.json上不能有任何本地包吗? 有文件的? 为Docz工作?

希望到官方v2发布时这不会成为问题。

我正在研究应该解决该问题的方法,但这并不是一件容易的事,因此可能需要花费一些时间才能解决。

同时有两个问题:

  • 您是否在项目中使用了npmrc文件?
  • 如果转到其他目录并运行:
npx create-docz-app docz-app-test && cd docz-app-test && yarn dev

它行得通吗? (试图查看问题是否出在Windows上,或者是您特定的依赖项集)

我们没有npmrc文件。 我们有一个.yarnrc文件..那会有所作为吗? 您是否仍希望我测试运行npx create-docz-app docz-app-test && cd docz-app-test && yarn dev

是的, .yarnrc可能是问题的根源。
docz不会将其复制到内部.docz文件夹中。 (这是一个错误,不是功能)

您是否可以尝试在单独的文件夹中运行命令以确认docz在您的计算机上按预期工作。

npx create-docz-app docz-app-test && cd docz-app-test && yarn dev

抱歉,我在公司代理后面,因此无法运行该命令...

好的,没问题。

最后一个请求,您可以在项目中尝试:

rm -rf .docz/node_modules && cp .yarnrc .docz/.yarnrc && yarn && yarn dev

我跑了rm -rf .docz/node_modules && cp .yarnrc .docz/.yarnrc && yarn && yarn docz dev ? 在末尾使用docz dev代替yarn dev。 一切都加载了,除了即时消息仍然在操场上看到了这个前题错误:

frontmatter

我的ContentHeader组件:

contentHeader

我的doczrc.js:

//从'docz-plugin-css'导入{css};

导出默认值{
打字稿:是的,
标题:“ Docz Typescript”,
菜单:[“入门”,“组件”],
notUseSpecifiers:是,
filterComponents:(文件)=> files.filter((文件路径)=> /[w-]*.(js|jsx|ts|tsx)$/.test(filepath)),
//插件:[
// css({
//预处理程序:“ less”,
//}),
//],
};

我确实尝试安装了docz-plugin-css,但是随后抛出一个错误,提示它找不到gatsby-plugin-mdx:

意外拒绝无法找到插件“ gatsby-plugin-mdx”。 也许您需要安装其软件包?

错误:找不到插件“ gatsby-plugin-mdx”。 也许您需要安装其软件包?

  • load.js:109 resolvePlugin
    [.docz] / [gatsby] /dist/bootstrap/load-plugins/load.js:109:11

  • load.js:153 processPlugin
    [.docz] / [gatsby] /dist/bootstrap/load-plugins/load.js:153:20

  • load.js:172 config.plugins.forEach.plugin
    [.docz] / [gatsby] /dist/bootstrap/load-plugins/load.js:172:20

  • Array.forEach

  • load.js:171 module.exports
    [.docz] / [gatsby] /dist/bootstrap/load-plugins/load.js:171:20

  • index.js:58 module.exports
    [.docz] / [gatsby] /dist/bootstrap/load-plugins/index.js:58:19

  • index.js:136 module.exports
    [.docz] / [gatsby] /dist/bootstrap/index.js:136:34

嘿,

我发布了不需要安装任何依赖项的新版本。

你可以试试看吗?

yarn remove docz && yarn add [email protected] && yarn docz dev

嘿!

运行该命令时奇怪的即时消息:

Couldn't find any versions for "docz" that matches "2.0.0-rc.33" ? Please choose a version of "docz" from this list: (Use arrow keys)

我将从@next运行它

它可能尚未正确传播(几分钟前已发布)。

但是我很确定它是正确的版本: https :

但是我很确定它是正确的版本: https :

是的,我看到了,现在以docz@next

目的是消除前题错误吗? 如果是这样,它仍然存在。 好像gatsby-theme-docz / src / base / Layout中的findEntry函数无法找出第29行: const isIndex = ctx.frontmatter.route === '/'

挂上它安装了rc-31。 我会再运行一次

并且请确保也删除.docz文件夹

我想我要稍等一下,因为它仍在下一步安装rc-31并要求我选择版本(如果我指定rc-33)。 我会再试一次..... 10分钟吗? 不确定npm将其推出需要多长时间

这很奇怪。 我仍然无法安装[email protected]

终于能够安装最新版本(在撰写本文时为rc-35),但很遗憾,似乎已损坏:

C:\ Users \ riha \ Documents \ webui(测试/文档->原点)
λyarn add docz
纱线添加v1.17.3
[1/4]正在解决包裹...
警告docz> docz组件> react-live> create-react-context> fbjs> [email protected] :不再维护core-js @ <2.6.8。 请升级到core-js @ 3或至少升级到core-js
[2/4]正在获取软件包...
信息[email protected]:平台“ win32”与此模块不兼容。
info“ [email protected]”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。
信息[email protected]:平台“ win32”与此模块不兼容。
信息“ [email protected]”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。
信息[email protected]:平台“ win32”与此模块不兼容。
信息“ [email protected]”是可选的依赖项,并且兼容性检查失败。 从安装中排除它。
[3/4]链接依赖项...
警告“> [email protected]”具有未满足的对等依赖项“ tslint@^4.0.0 || ^ 5.0.0”。
警告“ docz> gatsby-plugin-typescript> [email protected]”具有未满足的对等项依赖关系“ graphql@^14.1.1”。
警告“ docz> gatsby> [email protected] ”具有不正确的对等依赖项“ [email protected] ”。
[4/4]建立新包装...
[-/ 6]⠄等待...
[-/ 6]⠄等待...
[6/6]⠄锋利
[-/ 6]⠄等待...
错误C:\ Users \ riha \ Documents \ webuinode_modules \ sharp:命令失败。
退出码:1
命令:(node install / libvips && node install / dll-copy && prebuild-install)|| (node-gyp重建&&节点安装/ dll-copy)
参数:
目录:C:\ Users \ riha \ Documents \ webuinode_modules \ sharp
输出:
信息锋利下载https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-win32-x64.tar.gz
C:\ Users \ riha \ Documents \ webuinode_modules \ sharp \ install \ libvips.js:82
抛出错误;
^

错误:连接ECONNREFUSED 140.82.118.3:443
在TCPConnectWrap.afterConnect上[作为oncomplete](net.js:1106:14)

C:\ Users \ riha \ Documents \ webuinode_modules \ sharp>如果未定义npm_config_node_gyp(节点“ C:\ Program Filesnodejsnode_modules \ npm \ binnode-gyp-bin \ .... node_modulesnode-gyp \ binnode-gyp.js”重建)否则(节点“”重建)
gyp信息,如果以ok结尾,则可以正常工作
使用[email protected]的gyp信息
使用[email protected]的gyp信息| win32 | x64的
gyp信息生成C:\ Python27 \ python.exe
gyp info spawn args ['C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ gyp \ gyp_main.py',
gyp info生成args'binding.gyp',
gyp信息生成参数'-f',
gyp info生成args'msvs',
gyp信息生成参数'-G',
gyp info spawn args'msvs_version = 2015',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Users \ riha \ Documents \ webui \ node_modules \ sharp \ build \ config.gypi',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ addon.gypi',
gyp信息生成参数'-I',
gyp info spawn args'C:\ Users \ riha \ .node-gyp \ 10.16.3 \ include \ node \ common.gypi',
gyp info spawn args'-Dlibrary = shared_library',
gyp info spawn args'-Dvisibility = default',
gyp info spawn args'-Dnode_root_dir = C:\ Users \ riha \ .node-gyp \ 10.16.3',
gyp info spawn args'-Dnode_gyp_dir = C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp',
gyp info spawn args'-Dnode_lib_file = C:\ Users \ riha \ .node-gyp \ 10.16.3 \ <(target_arch)\ node.lib',
gyp info spawn args'-Dmodule_root_dir = C:\ Users \ riha \ Documents \ webui \ node_modules \ sharp',
gyp信息生成参数'-Dnode_engine = v8',
gyp info spawn args'--depth =。',
gyp info spawn args'--no-parallel',
gyp info spawn args'--generator-output',
gyp info spawn args'C:\ Users \ riha \ Documents \ webui \ node_modules \ sharp \ build',
gyp info生成args'-Goutput_dir ='。 ]
gyp信息生成C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ msbuild.exe
gyp info spawn args ['build / binding.sln',
gyp info spawn args'/ clp:Verbosity = minimal ',
gyp info spawn args'/ nologo',
gyp info spawn args'/ p:Configuration = Release; Platform = x64']
一次构建一个此解决方案中的项目。 要启用并行构建,请添加“ / m”开关。
VError.cpp
VInterpolate.cpp
VImage.cpp
win_delay_load_hook.cc
.. \ src \ libvips \ cplusplus \ VError.cpp(33):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webuinode_modules \ sharp \ build \ libvips-cpp.vcxproj]
.. \ src \ libvips \ cplusplus \ VInterpolate.cpp(34):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webuinode_modules \ sharp \ build \ libvips-cpp.vcxproj]
.. \ src \ libvips \ cplusplus \ VImage.cpp(41):致命错误C1083:无法打开包含文件:'vips / intl.h':没有这样的文件或目录[C:\ Users \ riha \ Documents \ webuinode_modules \ sharp \ build \ libvips-cpp.vcxproj]
哎呀! 建立错误
哎呀! 堆栈错误: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe失败,退出代码:1
哎呀! 堆栈在ChildProcess.onExit(C:\ Program Filesnodejsnode_nodesmodules \ npmnode_modulesnode-gyp \ lib \ build.js:262:23)
哎呀! 堆栈在ChildProcess.emit(events.js:198:13)
哎呀! 堆栈位于Process.ChildProcess._handle.onexit(internal / child_process.js:248:12)
哎呀! 系统Windows_NT 10.0.17763
哎呀! 命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“重建”
哎呀! CWD C:\ Users \ riha \ Documents \ webuinode_modules \ sharp

哦,这是因为我是公司代理人的幕后推手吗?

这里的问题似乎不是直接来自docz而是来自gatsbysharp模块无法构建

这是一些有同样问题的人的问题

https://github.com/gatsbyjs/gatsby/issues/11101
https://github.com/gatsbyjs/gatsby/issues/11026
https://github.com/lovell/sharp/issues/1539

确保检查是否可以找到可以完成安装的内容。

我将从尝试(先提交)开始:

rm -rf node_modules .docz yarn.lock package-lock.json && yarn
yarn docz dev

哦,这是因为我是公司代理人的幕后推手吗?

几乎可以肯定,但是我不确定它到底是怎么失败的。

这里的问题似乎不是直接来自docz而是来自gatsbysharp模块无法构建

这是一些有同样问题的人的问题

gatsbyjs / gatsby#11101
gatsbyjs / gatsby#11026
lovell / sharp#1539

确保检查是否可以找到可以完成安装的内容。

我将从尝试(先提交)开始:

rm -rf node_modules .docz yarn.lock package-lock.json && yarn
yarn docz dev

谢谢您的帮助! 我将看看这些并删除node_modules等...我希望今天是我能工作的一天! :)

由于此更改,我可能会问@rakannimer

嘿,

我发布了不需要安装任何依赖项的新版本。

你可以试试看吗?

yarn remove docz && yarn add [email protected] && yarn docz dev

这是否意味着用户安装了依赖项? 因此,我们的防火墙在阻止它吗? 我不懂这些东西,所以我希望这是有道理的.. :)

在2.0.0-rc.33之前,docz会在您首次调用docz dev时重新安装所有依赖项,并将其添加到gatsby-theme-docz(及其他)中

在2.0.0-rc.33之后,docz在安装时直接需要gatsby-theme-docz,并且在首次运行时不添加或安装任何其他依赖项。

因此,回答您的问题:

<2.0.0-rc.33

yarn add docz<strong i="9">@next</strong> # doesn't install gatsby-theme-docz 
yarn docz dev # if it's the first run it would re-install your dependencies + gatsby-theme-docz

> = 2.0.0-rc.33

yarn add docz<strong i="13">@next</strong> # also installs gatsby-theme-docz as a docz<strong i="14">@next</strong> dependency
yarn docz dev # doesn't install anything and is very fast

TLDR; 我不确定问题是否与版本32-33之间的切换有关,但是我可能错了!

在2.0.0-rc.33之前,docz会在您首次调用docz dev时重新安装所有依赖项,并将其添加到gatsby-theme-docz(及其他)中

在2.0.0-rc.33之后,docz在安装时直接需要gatsby-theme-docz,并且在首次运行时不添加或安装任何其他依赖项。

因此,回答您的问题:

<2.0.0-rc.33

yarn add docz<strong i="10">@next</strong> # doesn't install gatsby-theme-docz 
yarn docz dev # if it's the first run it would re-install your dependencies + gatsby-theme-docz

> = 2.0.0-rc.33

yarn add docz<strong i="14">@next</strong> # also installs gatsby-theme-docz as a docz<strong i="15">@next</strong> dependency
yarn docz dev # doesn't install anything and is very fast

TLDR; 我不确定问题是否与版本32-33之间的切换有关,但是我可能错了!

好的,谢谢您的清理,既然您已经解释了,那就更有意义了! 我不知道为什么我现在会收到此错误,我怀疑这些更改的原因,但至少会安装在rc-31上,所以出现了问题。

如果我遇到的问题是我在公司防火墙后面,那么我无能为力(我在一家网络安全公司工作,所以他们非常严格),真是可惜,因为我真的很想在自己的公司中使用docz webui文档。

非常感谢您抽出宝贵的时间来帮助我,非常感谢。 :)

没问题,我敢肯定,如果这件事发生在您身上,那么它也发生在其他许多人身上,那真是太可惜了!

作为最后的选择,您还可以看看以下内容: https :

如果有时间的话,如果您可以尝试建立一个gatsby网站https://www.gatsbyjs.org/docs/quick-start/来查看它是否可以在没有docz的情况下运行,我将不胜感激。

干杯😄

如此我可以确认gatsby安装正确。 (通过使用yarn add gatsby ,我无法创建示例中的站点,因为我无法在工作中从github克隆)我遵循您链接的env安装指南并重新安装了一些东西,但不幸的是,我仍然遇到相同的错误。 :-(

我已经解决了此问题,因为我的原始错误现已修复,即使我现在遇到的其他问题(据我所知都与位于公司防火墙后面有关)也是如此。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

nicholasess picture nicholasess  ·  3评论

mariusespejo picture mariusespejo  ·  3评论

w0wka91 picture w0wka91  ·  3评论

capaj picture capaj  ·  3评论

fenbka picture fenbka  ·  3评论