已发布的npm软件包不可搜索

时间:2019-04-22 02:50:49

标签: javascript node.js typescript npm

我发布了一个名为 container-object-model 的npm软件包,但目前在npmjs.com中看不到它。

enter image description here

但是我可以使用yarn add container-object-model安装它。

(node_modules中的文件)

enter image description here

package.json

{
  "name": "container-object-model",
  "version": "0.0.5",
  "description": "Container Object Model",
  "main": "./dist/container-object-model.js",
  "types": "./dist/container-object-model.d.ts",
  "keywords": ["container-object-model", "container"],
  "license": "MIT",
  "scripts": {
    "prepare": "npm run build",
    "start": "webpack",
    "build": "webpack --env=build",
    "postbuild": "tsc ./src/container-object-model.ts --declaration --esModuleInterop --outDir ./dist --emitDeclarationOnly",
    "demo": "webpack-dev-server --env=demo"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/rannie-peralta/container-object-model.git"
  },
  "author": "Rannie Peralta",
  "bugs": {
    "url": "https://github.com/rannie-peralta/container-object-model/issues"
  },
  "homepage": "https://github.com/rannie-peralta/container-object-model#readme",
  "devDependencies": {
    "awesome-typescript-loader": "^5.2.1",
    "clean-webpack-plugin": "^2.0.1",
    "css-loader": "^2.1.1",
    "html-webpack-plugin": "^3.2.0",
    "node-sass": "^4.11.0",
    "sass-loader": "^7.1.0",
    "style-loader": "^0.23.1",
    "typescript": "^3.4.3",
    "webpack": "^4.30.0",
    "webpack-cli": "^3.3.0",
    "webpack-dev-server": "^3.3.1"
  },
  "dependencies": {
    "@types/lodash.throttle": "^4.1.6",
    "@types/memoizee": "^0.4.2",
    "@types/shortid": "^0.0.29",
    "decimal.js": "^10.1.1",
    "lodash.throttle": "^4.1.1",
    "memoizee": "^0.4.14",
    "resize-observer-polyfill": "^1.5.1",
    "shortid": "^2.2.14"
  }
}

这也是我尝试导入时发现的另一个问题:

enter image description here

0 个答案:

没有答案