npm unpublish
κ° μλνμ§ μμΌλ©° λ μ§μ€νΈλ¦¬κ° μ½λ 404λ‘ μλ΅νλλΌλ μ€λ₯κ° νμλμ§ μμ΅λλ€.
npm unpublish @siliceum/[email protected] --loglevel verbose
npm κ³΅μ© λ μ§μ€νΈλ¦¬
λͺ λ Ή μ€μ
- @ siliceum / λ°©ν΄μ [email protected]
μλ²λ μ€λ₯ 404λ‘ μλ΅ν©λλ€.
λν μλ ν¬μΈνΈ https://registry.npmjs.org/@siliceum%2fcalcite-cli
λ μ 보λ₯Ό λ°ννμ§λ§ ?write=true
( https://registry.npmjs.org/@siliceum%2fcalcite-cli?write=true
) λ²μ μ 404 not found μ€λ₯λ₯Ό λ°νν©λλ€.
npm unpublish @siliceum/[email protected]
ν¨ν€μ§κ° κ²μλμ§ μμκ±°λ μ€λ₯κ° μΈμλ©λλ€. (κΆκ·Ήμ μΌλ‘ 404κ° μλ λ€λ₯Έ κ²).
μμΈν λ‘κ·Έ λ 벨μ μ¬μ©νλ©΄ λ€μκ³Ό κ°μ μΆλ ₯μ΄ κ°λ₯ν©λλ€.
npm unpublish @siliceum/[email protected] --loglevel verbose
npm μ λ³΄κ° okλ‘ λλλ©΄ μλνμ΅λλ€.
npm λμ¬ cli [
npm λμ¬ cli 'C : \ Program Files \ nodejs \ node.exe',
npm λμ¬ cli 'C : \ Program Files \ nodejs \ node_modules \ npm \ bin \ npm-cli.js',
npm λμ¬ cli 'unpublish',
npm λμ¬ cli '@ siliceum / [email protected] ',
npm λμ¬ cli '--loglevel',
npm λμ¬ cli 'verbose'
npm λμ¬ cli]
[email protected]μ μ¬μ©ν npm μ 보
[email protected]μ μ¬μ©ν npm μ 보
npm λμ¬ npm-session e43c8f8257e968e5
npm http fetch GET 404 https://registry.npmjs.org/@siliceum%2fcalcite-cli ? write = true 492ms
- @ siliceum / λ°©ν΄μ [email protected]
npm λμ¬ μ’ λ£ [0, true]
npm νμ΄λ° npm μλ£ 1157ms
npm μ 보 νμΈ
npm unpublish
λ° npm deprecate
λͺ¨λμμμ΄ λ¬Έμ κ° λ°μν©λλ€!
$ npm deprecate --force --verbose [email protected] "Generates errors related to exports in the browser, use 1.2.2 or newer"
...
npm http fetch GET 200 https://registry.npmjs.org/luar?write=true 328ms
npm http fetch PUT 404 https://registry.npmjs.org/luar 98ms
npm verb stack Error: 404 Not Found - PUT https://registry.npmjs.org/luar - Not found
npm verb stack at /usr/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:114:15
npm verb stack at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm verb statusCode 404
npm verb pkgid [email protected]
...
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/luar - Not found
npm ERR! 404
npm ERR! 404 '[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
...
$ npm unpublish --force --verbose [email protected]
...
npm http fetch GET 200 https://registry.npmjs.org/luar?write=true 257ms
npm http fetch PUT 404 https://registry.npmjs.org/luar/-rev/5-260b27ca1cdb4a5d3b4175578e1c0300 99ms
npm verb stack Error: 404 Not Found - PUT https://registry.npmjs.org/luar/-rev/5-260b27ca1cdb4a5d3b4175578e1c0300 - Not found
npm verb stack at /usr/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:114:15
npm verb stack at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm verb statusCode 404
npm verb pkgid [email protected]
...
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/luar/-rev/5-260b27ca1cdb4a5d3b4175578e1c0300 - Not found
npm ERR! 404
npm ERR! 404 '[email protected]' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
...
npm deprecate
μ€νμ λμΌν λ¬Έμ κ° λ°μ-404 Not Foundκ° λ°νλ©λλ€. μμΈμ λ΄κ° μ¬λ°λ₯΄κ² μΈμ¦λμ§ μμκΈ° λλ¬Έμ
λλ€ ( npm adduser
μ λ ¬ λ¨). κ·Έλ¬λ Not Found μΆλ ₯μ μ μ μΌλ‘ μ΄μ΄μ§λλ€. μλ² APIκ° λ€λ₯Έ μν μ½λ (μ : 401)λ₯Ό λ°ν ν κ°λ₯μ±μ΄ μλλΌλ μ΄λ¬ν λͺ
λ Ήμ μΌλΆ μΆλ ₯μ λ‘κ·ΈμΈμ μ μνλ κ²μ΄ μ’μ΅λλ€. μΆλ ₯μ μΌλ°μ μ΄κ³ νμ νμλκ±°λ ( "λ‘κ·ΈμΈνλμ§ νμΈνμμμ€!") authTokenμ΄μλ κ²½μ° νμ λ μ μμ΅λλ€.
νμ§λ§ λ‘κ·ΈμΈνμ΅λλ€! μ΄κ²μ ν¨ν€μ§ μμ μλ‘ μ λ²μ μ κ²μ ν κ²κ³Ό λκ°μ ν°λ―Έλ μΈμ μ μμ΅λλ€.
μ΄λ°! μ κ²½ μ°μ§ λ§μΈμ. λ°©κΈ λ‘κ·Έ μμνλ€κ° λ€μ λ‘κ·ΈμΈνμ΅λλ€. μ΄μ λ κΈ°λ₯μ΄ λͺ¨λ μλν©λλ€. νΌλμ λλ € μ£μ‘ν©λλ€.
@luawtf μ,μ΄ κ²½μ° λ΄ μν©κ³Ό κ°μ μν© μΈ κ²μ²λΌ λ€λ¦½λλ€.μ΄ λͺ λ Ήμ μ€μ ββλ¬Έμ κ° μΈμ¦κ³Ό κ΄λ ¨λ κ²½μ° 404 Not Foundλ₯Ό νμν©λλ€.
λ€! λλ λ μΌλ°μ μ΄κ³ μ₯ν©ν μ€λ₯κ° ν΄ κ²μ΄λΌλ λ° λμν©λλ€.
λν 401 Unauthorizedκ° λ ν©λ¦¬μ μΌ λ λ μ§μ€νΈλ¦¬κ° 404λ₯Ό λ°ννλ μ΄μ λ 무μμ
λκΉ?
λμν©λλ€. μ΄λ―Έ κ³΅κ° λ ν¨ν€μ§μ κ²½μ° μ΄μνκ² λ³΄μ λλ€.μ΄ κ²½μ° 401 λμ 404λ₯Ό λ°ννμ¬ λ³΄μ μΈ‘λ©΄μμ μ»μ μμλ κ²μ μμ΅λλ€. ν΄λΉ URLμ μ무κ²λ μλ€λ μ¬μ€μ μλ¦¬μ§ μκΈ° μν΄ λ‘κ·Έ μμ ν λ λΉκ³΅κ° μ μ₯μμ μ‘μΈμ€νλ €κ³ νλ©΄ GitHubμμ 404λ₯Ό νμνλ κ²κ³Ό κ°μ΄ ν¨ν€μ§κ° λΉκ³΅κ° μΈ κ²½μ° μλ―Έκ° μμ΅λλ€.
λ‘κ·ΈμΈνμ§ μμ λ¬Έμ μμ νμΈν μ μμ΅λλ€.
401μ λ°ννκ±°λ λ‘κ·ΈμΈνμ§ μμλ€λ κ²½κ³ λ©μμ§κ° λμκ² μ’μ μ리μ
λλ€.
μ°λ¦¬λ κ³΅κ° ν¨ν€μ§λ‘λμ΄ λ¬Έμ λ₯Ό κ²ͺμμ΅λλ€. npm unpublish @scope/package<strong i="5">@version</strong> --verbose
μ 404κ° νμλμ§λ§ κ·Έλ μ§ μμΌλ©΄ κ²μ μ·¨μκ° μ±κ³΅ν κ²μΌλ‘ 보μ
λλ€.
λ΄ ν¨ν€μ§λ₯Ό deprecate
ν μ μλ€λ λμΌν λ¬Έμ κ° μμ΅λλ€. ν¨ν€μ§ μ΄λ¦μ μ¬λμκ° URLμμ %2f
λ‘ νμλλ κ²μ μμ κΈ° λλ¬Έμ ν¨ν€μ§ λ²μ μ κ΄λ ¨μ΄ μλ€κ³ κ°μ νμ§λ§ μ€μ λ‘ λ¬΄μ¨ μΌμ΄ μΌμ΄λλμ§ μ΄ν΄νμ§ λͺ»ν©λλ€.
$ node -v
v14.15.0
$ npm -v
6.14.8
$ npm deprecate @alling/foo-bar "This package should not be used."
npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@alling%2ffoo-bar - Not found
npm ERR! 404
npm ERR! 404 '@alling/foo-bar<strong i="9">@latest</strong>' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
@SimonAlling npm v7.0.11μ μ΄λ»κ² λλμ?
@SimonAlling npm v7.0.11μ μ΄λ»κ² λλμ?
$ docker run -it node bash
# npm -v
7.0.8
# npm login
Logged in as alling on https://registry.npmjs.org/.
npm notice
npm notice New patch version of npm available! 7.0.8 -> 7.0.11
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.11
npm notice Run npm install -g [email protected] to update!
npm notice
# npm deprecate nonexisting-package-asdfasdf LOL
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/nonexisting-package-asdfasdf?write=true
npm ERR! 404
npm ERR! 404 'nonexisting-package-asdfasdf<strong i="8">@latest</strong>' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
# npm deprecate @alling/foo-bar "This package should not be used."
μ€λ₯λ κΈ°ν μΆλ ₯μ μμ§λ§ 30 λΆ μ λ νμλ ν¨ν€μ§ νμ΄μ§ (μ : https://www.npmjs.com/package/@alling/foo-bar)μ μ¬μ© μ€λ¨ λ©μμ§κ° νμλμ§ μμμΌλ―λ‘ λ€μ λͺ λ Ήνμμμ€.
# npm deprecate @alling/foo-bar "This package should not be used."
npm ERR! code E422
npm ERR! 422 Unprocessable Entity - PUT https://registry.npmjs.org/@alling%2ffoo-bar - Unprocessable Entity
κ·Έλ¬λ νΉμ λ²μ μ ν¨ν€μ§ (μ : https://www.npmjs.com/package/@alling/foo-bar/v/1.1.6)λ‘ μ΄λνλ©΄ μμλλ μ§μ μ€λ¨ λ©μμ§κ° νμλ©λλ€ *. νμ§λ§ λ©μΈ ν¨ν€μ§ νμ΄μ§μλ νμλκΈ°λ₯Ό μν©λλ€ (μ : urix
).
* μ΅μ λ²μ : _μ΄ ν¨ν€μ§ λ λ μ΄μ μ¬μ©λμ§ μμ΅λλ€ _. κΈ°ν λͺ¨λ λ²μ : _μ΄ λ²μ μ λ μ΄μ μ¬μ©λμ§ μμ΅λλ€ _.
νΈμ§ : deprecation λ©μμ§κ° λ§μΉ¨λ΄ λ©μΈ ν¨ν€μ§ νμ΄μ§μ λνλ¬μ΅λλ€.
npm v7.0.8μ μ¬μ©νκ³ μμ΅λλ€. deprecate λͺ
λ Ήμ μ€ννκΈ° μ μ npm install -g npm@7
ν μ μμ΅λκΉ?
deprecation λ©μμ§λ λ§μΉ¨λ΄ λ©μΈ ν¨ν€μ§ νμ΄μ§μ λν λ¬μΌλ―λ‘ npm v7.0.8μμ μλνλ€κ³ μκ°ν©λλ€. : slightly_smiling_face :
κ°μ₯ μ μ©ν λκΈ
μ΄λ°! μ κ²½ μ°μ§ λ§μΈμ. λ°©κΈ λ‘κ·Έ μμνλ€κ° λ€μ λ‘κ·ΈμΈνμ΅λλ€. μ΄μ λ κΈ°λ₯μ΄ λͺ¨λ μλν©λλ€. νΌλμ λλ € μ£μ‘ν©λλ€.