如何部署具有完全功能依赖性的npm软件包?

时间:2019-12-19 17:42:21

标签: node.js npm command-line-interface npm-publish

这是我的第一个节点cli和第一个npm发布。不知道出了什么问题。

当我以node index.js运行它时,它可以正常工作并带有颜色。 here is the result

我的package.json

"author": "rakesh shrestha",
  "license": "ISC",
  "dependencies": {
    "chalk": "^3.0.0",
    "ejs": "^3.0.1",
    "figlet": "^1.2.4",
    "inquirer": "^7.0.1",
    "inquirer-fuzzy-path": "^2.2.0"
  },
  "bin": {
    "intelligent-wizard": "./index.js"
  }

我得到的是这个带有intelligent-wizard的cli。

using the bin command intelligent-wizard it shows like

每当我将此包下载到新计算机上时,我都需要npm-link来避免该问题?

我的小包裹intelligent-wizard的名称。

0 个答案:

没有答案