Node.js/npm/域

来自康健生活
Kangkk​(留言 | 贡献)2025年7月18日 (五) 20:02的版本 (创建页面,内容为“== scope == 发布 scope 组件之前需要初始化项目。 {{shc|<syntaxhighlight lang="bash"> npm init --scope=kangjian.xyz</syntaxhighlight>|$|/home/kangkk}} 推送组件。 {{shc|<syntaxhighlight lang="bash"> npm publish --access public</syntaxhighlight>|$|/home/kangkk}}”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

scope

发布 scope 组件之前需要初始化项目。

/home/kangkk
npm init --scope=kangjian.xyz

推送组件。

/home/kangkk
npm publish --access public