NPM publish

npm login
 
{ "name": "blabla", "version": "0.1.3", "description": "Web 3D Make Make Easily", "main": "dist/main.js", "author": { "name": "Seonglae Cho", "email": "sungle3737@gmail.com", "url": "http://www.seongland.com" }, "contributors": [ { "name": "Seonglae Cho", "email": "sungle3737@gmail.com", "url": "http://www.seongland.com" } ], "files": [ "dist" ], "license": "MIT", "scripts": { "build": "rm -rf ./dist && tsc", "prepublish": "pnpm build" }, "keywords": [ "seongland", "threejs", "potree", "three" ], "homepage": "https://github.com/seongland/openspace", "bugs": { "url": "https://github.com/seongland/openspace/issues", "email": "sungle3737@gmail.com" }, "repository": { "type": "git", "url": "https://github.com/seongland/openspace" } }
npm publish --access=public
 
 
 
You must sign up for private packages 오류 발생시
관련지식 npm, publishnpmjs 로 publish를 실행할때 아래와 같이 오류가 발생할 수 있습니다.npm ERR! code E402npm ERR! 402 Payment Required - PUT http://registry.npmjs.org/@sub0709%2fjson-config - You must sign up for private packagesprivate package 로 퍼블리싱 하려고 해서 오류가 나는겁니다.(유료서비스) --access=public 을 추가하면 해결됩니다.npm publish --access=public
You must sign up for private packages 오류 발생시
내 NPM 패키지(모듈) 배포하기
개발을 위해 npm install xxx로 설치하는 모듈이 많아지면서 자주 사용하는 나의 코드들도 같은 방법으로 제공하고 싶었죠.하지만 '코드 복붙'이 더 쉬우니 차일피일 미루던 일을 최근 기회가 생겨 시작했습니다.동시에 NPM 배포에 필요한 과정을 정리했습니다. 모듈은 Node.js require() 함수에 의해 로드할 수 있는 node_modules 디렉터리의 파일 또는 디렉터리입니다.모듈은 package.json 파일을 가질 필요가 없기 때문에 모든 모듈이 패키지는 아닙니다.
내 NPM 패키지(모듈) 배포하기
 
 
 

Recommendations