2
범위에 npm 패키지를 게시하고 싶습니다. 내 사용자 이름으로 범위를 가진 사용자로 등록해야합니까? 예 내가 이런 패키지를 만들 경우 :게시 방법 NPM 범위 패키지/NPM 범위를 찾을 수 없습니까?
[email protected]:~/firstpackage$ npm init
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (firstpackage) @npmtestscope/firstpackage
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /home/ole/deletethis/package.json:
{
"name": "@npmtestscope/firstpackage",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this ok? (yes)
[email protected]:~/firstpackage$ touch README.md
[email protected]:~/firstpackage$ npm publish
이 결과 :
npm ERR! 404 Scope not found : @npmtestscope/firstpackage
그래서 범위를 찾기 위해 NPM 위해서는 어떻게해야합니까 무엇? 이 페이지에
당신이 당신의 범위에 완료 단계 1, 2 패키지를 게시 할 수 NPM에서 조직을 생성하기 위해
당신이 @npmtestscope을 원한다면, 당신은해야합니다 a npmtestscope 조직을 만드십시오 https://www.npmjs.com/docs/orgs/ –
나는 대답을 편집하고 그것을 받아 들였다. 희망은 그것이 ok 다. 도와 줘서 고마워. – Ole
문제 없음! 감사! –