DBILITY

npm upgrade & package version check, npm init package.json generation 본문

front-end & ui/npm

npm upgrade & package version check, npm init package.json generation

DBILITY 2021. 12. 13. 08:25
반응형
Microsoft Windows [Version 10.0.19044.1348]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>npm -v
6.14.15

C:\Windows\system32>npm i -g npm
C:\Users\ROOKIE\AppData\Roaming\npm\npm -> C:\Users\ROOKIE\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
C:\Users\ROOKIE\AppData\Roaming\npm\npx -> C:\Users\ROOKIE\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js
+ npm@8.3.0
added 214 packages from 96 contributors in 9.423s

C:\Windows\system32>npm -v
8.3.0

C:\Windows\system32>npm show react-router-dom

react-router-dom@6.1.1 | MIT | deps: 2 | versions: 62
Declarative routing for React web applications
https://github.com/remix-run/react-router#readme

keywords: react, router, route, routing, history, link

dist
.tarball: https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.1.1.tgz
.shasum: ed59376ff9115bc49227e87982a32e91e9530ca3
.integrity: sha512-O3UH89DI4o+swd2q6lF4dSmpuNCxwkUXcj0zAFcVc1H+YoPE6T7uwoFMX0ws1pUvCY8lYDucFpOqCCdal6VFzg==
.unpackedSize: 165.8 kB

dependencies:
history: ^5.1.0     react-router: 6.1.1

maintainers:
- timdorr <timdorr@timdorr.com>
- mjackson <npm@mjackson.me>
- chancestrickland <hi@chance.dev>

dist-tags:
latest: 6.1.1       next: 6.0.0-beta.8

published yesterday by mjackson <npm@mjackson.me>

C:\Windows\system32>

project 디렉토리를 생성하고 안에서 npm init를 실행하면 package.json을 생성할 수 있다.

처음 알았다.ㅎㅎ처음이니까.

반응형

'front-end & ui > npm' 카테고리의 다른 글

npm webpack 기본 정리  (0) 2023.03.16
npm list extraneous  (0) 2022.01.07
npm package update  (0) 2021.12.24
nodemon security exception  (0) 2021.12.15
npm start Something is already running on port 3000.  (0) 2021.12.13
Comments