这是我的第一个节点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
的名称。