ysys
@yeseouler524530
Reviews Written
-
Average Rating
-
Posts
Q&A
npm run build ๊ฐ ๋์ง ์์ต๋๋ค.
๊ณต์ ํด์ฃผ์ tidory ๊ณต์ ๋ฌธ์ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ฌ ๋ง์ํด์ฃผ์ ๊ฒ์ฒ๋ผ ts_session, url, mode ๋ฅผ ์ค์ ํ ๋ค, npm run build, npm run deploy, npm run store ๋ช ๋ น์ด๊ฐ ์ฑ๊ณต์ ์ผ๋ก ์๋ํ๋ ๊ฒ์ ํ์ธํ์์ต๋๋ค. ๐ ๊ทธ๋ฐ๋ฐ ์ด์ํ๊ฒ๋ ์ ๋ npm run preview๋ง ์คํ์ด ๋์ง ์์ ๋ค์ ์ง๋ฌธ๋๋ฆฝ๋๋ค. package.json { "scripts": { "start": "cross-env NODE_ENV=development tidory start", "preview": "cross-env NODE_ENV=development tidory preview", "build": "cross-env NODE_ENV=production tidory build", "build:compress": "cross-env NODE_ENV=build tidory build --compress", "deploy": "tidory deploy", "store": "tidory store" }, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/tidory/tidory" }, "devDependencies": { "cheerio": "^1.0.0-rc.2", "cross-env": "^7.0.2", }, "dependencies": { "@tidory/example": "github:tidory/example", "tidory": "^7.2" } } tidory.config.js /** * Tidory Configuration * https://tidory.com/docs/configuration/ */ module.exports = { /** * Tistory session cookie value (์์์ session ๊ฐ์ผ๋ก ๋ณ๊ฒฝํ์์ต๋๋ค.) */ ts_session: '21938cjadf212312031283dal329ms29malsdkfaa', /** * Tistory blog URL (์์์ tistory ๋ธ๋ก๊ทธ ์ฃผ์๋ก ๋ณ๊ฒฝํ์์ต๋๋ค.) */ url: 'https://johndoe.tistory.com/', /** * Preview */ preview: { /** * Preview Mode * * index * entry * category * tag, * location * media, * guestbook */ mode: 'index' }, /** * Template aliases */ alias: { // as String '@styl': 'assets/styl', // as Function '@md': fn => fn.replace(/^@md/, 'assets/md') }, extends (webpackConfig) { webpackConfig.module.rules.push({ test: /.styl(us)?$/, use: [ 'vue-style-loader', 'css-loader', 'stylus-loader' ] }) } } index.pug extends app block TIDORY div#app //- Using Vue Component hello-world(title="[##_title_##]") assets/components/hello-world.vue template> h1>{{ title }}h1> template> script> export default { props: ['title'] } script> assests/styl/app.js import Vue from 'vue' Vue.component( 'hello-world', require('./components/hello-world.vue').default ); new Vue({ el: '#app', }); npm run build ํ ๋ก์ปฌ์๋ฒ port 5501๋ก ๋์ ๋ณธ ํ๋ฉด (์ฌ์ง) npm run preview ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ์ ๋ ฅ ์ ๋ค์๊ณผ ๊ฐ์ ์ปดํ์ผ ์๋ฌ๊ฐ ๋จ๋๋ฐ์. > @ preview C:\tidory\second-app > cross-env NODE_ENV=development tidory preview Project is running at http://localhost:3000/ webpack output is served from / webpack: wait until bundle finished: / Error: Request failed with status code 428 at createError (C:\tidory\second-app\node_modules\axios\lib\core\createError.js:16:15) at settle (C:\tidory\second-app\node_modules\axios\lib\core\settle.js:18:12) at IncomingMessage.handleStreamEnd (C:\tidory\second-app\node_modules\axios\lib\adapters\http.js:202:11) at IncomingMessage.emit (events.js:333:22) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { config: { adapter: [Function: httpAdapter], transformRequest: { '0': [Function: transformRequest] }, transformResponse: { '0': [Function: transformResponse] }, timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', Referer: 'https://johndoe.tistory.com/', Cookie: 'TSSESSION=21938cjadf212312031283dal329ms29malsdkfaa', 'User-Agent': 'axios/0.18.1', 'Content-Length': 812 }, method: 'post', baseURL: 'https://johndoe.tistory.com/', url: 'https://johndoe.tistory.com/manage/design/skin/html.json', data: '{"html":"[##_page_title_##]\\n","css":"","isPreview":true}' }, request: ClientRequest { _events: [Object: null prototype] { socket: [Function (anonymous)], abort: [Function (anonymous)], aborted: [Function (anonymous)], error: [Function (anonymous)], timeout: [Function (anonymous)], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, _SNICallback: null, servername: 'https://johndoe.tistory.com/', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 9, connecting: false, _hadError: false, _parent: null, _host: 'https://johndoe.tistory.com/', _readableState: [ReadableState], readable: true, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular *1], [Symbol(res)]: [TLSWrap], [Symbol(asyncId)]: 1497, [Symbol(kHandle)]: [TLSWrap], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] }, _header: 'POST /manage/design/skin/html.json HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: application/json\r\n' + 'Referer: https://johndoe.tistory.com//\r\n' + 'Cookie: TSSESSION=21938cjadf212312031283dal329ms29malsdkfaa\r\n' + 'User-Agent: axios/0.18.1\r\n' + 'Content-Length: 812\r\n' + 'Host: johndoe.tistory.com\r\n' + 'Connection: close\r\n' + '\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, path: '/manage/design/skin/html.json', _ended: true, res: IncomingMessage { _readableState: [ReadableState], readable: false, _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 0, httpVersion: '1.0', complete: true, headers: [Object], rawHeaders: [Array], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 428, statusMessage: 'Precondition Required', client: [TLSSocket], _consuming: false, _dumped: false, req: [Circular *1], responseUrl: 'https://johndoe.tistory.com/manage/design/skin/html.json', redirects: [], [Symbol(kCapture)]: false }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, _redirectable: Writable { _writableState: [WritableState], writable: true, _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _redirectCount: 0, _redirects: [], _requestBodyLength: 812, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: [Circular *1], _currentUrl: 'https://johndoe.tistory.com/manage/design/skin/html.json', [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], 'content-type': [Array], referer: [Array], cookie: [Array], 'user-agent': [Array], 'content-length': [Array], host: [Array] } }, response: { status: 428, statusText: 'Precondition Required', headers: { date: 'Thu, 09 Apr 2020 12:00:04 GMT', server: 'Apache', 'x-ua-compatible': 'IE=Edge', 'cache-control': 'no-cache, private', 'content-length': '112', 'content-type': 'text/html; charset=UTF-8' }, config: { adapter: [Function: httpAdapter], transformRequest: [Object], transformResponse: [Object], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: [Object], method: 'post', baseURL: 'https://johndoe.tistory.com/', url: 'https://johndoe.tistory.com/manage/design/skin/html.json', data: '{"html":"[##_page_title_##]\\n","css":"","isPreview":true}' }, request: ClientRequest { _events: [Object: null prototype], _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], _header: 'POST /manage/design/skin/html.json HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: application/json\r\n' + 'Referer: https://johndoe.tistory.com/\r\n' + 'Cookie: TSSESSION=21938cjadf212312031283dal329ms29malsdkfaa\r\n' + 'User-Agent: axios/0.18.1\r\n' + 'Content-Length: 812\r\n' + 'Host: johndoe.tistory.com\r\n' + 'Connection: close\r\n' + '\r\n', _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, path: '/manage/design/skin/html.json', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, _redirectable: [Writable], [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, data: { message: 'HTML ๋๋ CSS ๋ด์ฉ์ด ์๊ฑฐ๋ ๋๋ฌด ์งง์ต๋๋ค.' } } } (node:14628) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined at TistorySkin.request (C:\tidory\second-app\node_modules\tistory-skin\lib\RemoteController.js:40:21) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async TistorySkin.change (C:\tidory\second-app\node_modules\tistory-skin\lib\TistorySkin.js:58:22) at async module.exports (C:\tidory\second-app\node_modules\tidory\lib\html.js:32:5) at async Compilation. (C:\tidory\second-app\node_modules\tidory\lib\tidory-webpack-plugin.js:56:31) (node:14628) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:14628) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ํนํ data: { message: 'HTML ๋๋ CSS ๋ด์ฉ์ด ์๊ฑฐ๋ ๋๋ฌด ์งง์ต๋๋ค.' } ๋ผ๋ ๋ถ๋ถ์ด ์ดํด๊ฐ ์ ๊ฐ์ง ์์ ์ง๋ฌธ๋๋ฆฝ๋๋ค. preview ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ํด ์ถ๊ฐ์ ์ผ๋ก ์ค์ ํด์ผ ํ ๋ถ๋ถ์ด ์๊ฑฐ๋, ํน์ฌ ์ ๊ฐ ์๋ชป ์ค์ ํ๊ณ ๋์ด๊ฐ ๋ถ๋ถ์ด ์๋ค๋ฉด ์๋ ค์ฃผ์๋ฉด ์ถ๊ฐํ๋๋ก ํ๊ฒ ์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค. ๐
- 0
- 3
- 1K
Q&A
npm start ๊ฐ ๋์ง ์์ต๋๋ค.
๋ง์ํด์ฃผ์ ๋๋ก ํฐ๋๋ฆฌ ํ๋ก์ ํธ ํ ํ๋ฆฟ (second-app)์ C:\tidory\ ๋ก ์ฎ๊ฒจ์ npm start ๋ช ๋ น์ด๋ฅผ ๋ค์ ์๋ํด๋ณด์๋๋ ์๋์ ๊ฐ์ด ํ๋ก์ ํธ ์ฒซ ํ๋ฉด์ ํ์ธํ ์ ์์์ต๋๋ค. ๋ฆ์ ์๊ฐ๊น์ง ๋์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! ๐ $ npm start > @ start C:\tidory\second-app > cross-env NODE_ENV=development tidory start Project is running at http://localhost:8080/ webpack output is served from / webpack: wait until bundle finished: / webpack: Compiled successfully. (์ฌ์ง)
- 0
- 4
- 4.2K
Q&A
npm start ๊ฐ ๋์ง ์์ต๋๋ค.
๋น ๋ฅธ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค! ์์ ์ windows OS์์ nvm์ ์ค์นํ๋ค๊ฐ ์ด์ ๋น์ทํ ๊ฒฝ์ฐ๊ฐ ์์์ด์ github issue ์ ์๋ comment๋ฅผ ๋ค์ ธ์ ํด๊ฒฐํ๋ ์ ์ด ์์๋๋ฐ์. ๋น์ ์ฐธ๊ณ ํ๋ url: https://github.com/coreybutler/nvm-windows/issues/41#issuecomment-464799741 cmd ์ฐฝ์ ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์คํํ ๋ค์, dir /? ์ dir /X ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํด์ค์ ๊ฒฝ๋ก๋ฅผ ๊ตฌํ์์ต๋๋ค. C:\Users>dir /? ๋๋ ํฐ๋ฆฌ์ ์๋ ํ์ผ๊ณผ ํ์ ๋๋ ํฐ๋ฆฌ ๋ชฉ๋ก์ ๋ณด์ฌ ์ค๋๋ค. ( ์์ฒด ์๋ต ... ) /X 8dot3 ํ์ผ ์ด๋ฆ์ด ์๋ ํ์ผ์ ๋ํ ์งง์ ์ด๋ฆ์ ๋ณด์ฌ ์ค๋๋ค ์ด ํ์์ ๊ธด ์ด๋ฆ ์์ ์งง์ ์ด๋ฆ์ด ์ถ๊ฐ๋ ๊ฒ์ผ๋ก /N ํฌ๋งท๊ณผ ๊ฐ์ต๋๋ค. ์งง์ ์ด๋ฆ์ด ์์ผ๋ฉด ๊ณต๋ฐฑ์ ๋ณด์ฌ ์ค๋๋ค. /4 4์๋ฆฟ์ ์ฐ๋๋ฅผ ํ์ํฉ๋๋ค. ์ค์์น๋ฅผ DIRCMD ํ๊ฒฝ ๋ณ์๋ก ๋ฏธ๋ฆฌ ์ค์ ํ ์ ์์ต๋๋ค. ํ์ดํ(-)์ ์ค์์น ์์ ์ ๋์ฌ๋ก ๋ถ์ด๋ฉด ๋ฏธ๋ฆฌ ์ค์ ๋ ์ค์์น๋ฅผ ์ฌ์ ์ํฉ๋๋ค(์, /-W). C:\Users>dir /X C ๋๋ผ์ด๋ธ์ ๋ณผ๋ฅจ์๋ ์ด๋ฆ์ด ์์ต๋๋ค. ๋ณผ๋ฅจ ์ผ๋ จ ๋ฒํธ: 846D-6E73 C:\Users ๋๋ ํฐ๋ฆฌ 2020-01-04 ์ค์ 12:33 . 2020-01-04 ์ค์ 12:33 .. 2019-09-06 ์ค์ 01:27 Public 2020-01-19 ์คํ 10:53 JOHN~1 John Doe 0๊ฐ ํ์ผ 0 ๋ฐ์ดํธ 4๊ฐ ๋๋ ํฐ๋ฆฌ 156,419,928,064 ๋ฐ์ดํธ ๋จ์ ๋น์ nvm์ ๊ฒฝ์ฐ root ๊ฒฝ๋ก ์๋์ setting.txt ํ์ผ์ด ์์ด์ ๊ทธ๊ณณ์ root ๊ฒฝ๋ก๋ฅผ ์์ ํด์ฃผ๋ ๊ฒ์ ํตํด ์๋ฌ๋ฅผ ํด๊ฒฐํ์๋๋ฐ์. $ nvm root Current Root: C:\Users\JOHN~1\AppData\Roaming\nvm create-tidory-app์ ๊ฒฝ์ฐ, ํน์ ์ด๋์์ ํ๋ก์ ํธ ๊ฒฝ๋ก๋ฅผ ์์ ํ๋ฉด ๋๋ ๊ฒ์ธ์ง ์๋ ค์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. ํ์ฌ create-tidory-app ์ค์น ๊ฒฝ๋ก C:\Users\JOHN~1\AppData\Roaming\nvm\v13.6.0\node_modules\create-tidory-app ํด๋น create-tidory-app ๊ฒฝ๋ก ์๋์ ํ์ผ $ ls -a . create-tidory-app create-tidory-app.ps1 node_modules npm.cmd npx.cmd .. create-tidory-app.cmd node.exe npm npx ๊ฐ์ฌํฉ๋๋ค ๐
- 0
- 4
- 4.2K
Q&A
๋น๋์ค ์ ๋ก๋ FORM ๋ง๋ค๊ธฐ(1) ์์ Sign Up ์ด ๋์ง ์์ต๋๋ค ใ ใ
๋น ๋ฅธ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค! ๋ง์ํด ์ฃผ์ ๋๋ก root ๋๋ ํ ๋ฆฌ ์๋ package.json ํ์ผ์ ์๋ ๊ธฐ์กด ์ฝ๋๋ฅผ ์ง์ฐ๊ณ , ์์ ์ ์ด์ฃผ์ ์ฝ๋๋ฅผ ๊ทธ๋๋ก ๋ณต์ฌ & ๋ถ์ฌ๋ฃ๊ธฐ ํ ๋ค์, ๋์ผํ root ๋๋ ํ ๋ฆฌ ๊ฒฝ๋ก์์ npm install ์ ํ๋ฒ ๋ ์คํ ํด์ค ๋ค, npm run dev๋ฅผ ํ์๋๋ ์ ์์ ์ผ๋ก ํ์ด์ง๋ก๋ฉ/ํ์๊ฐ์ /๋ก๊ทธ์ธ์ด ๋์์ต๋๋ค. (์ฌ์ง) ๋ค์ ํ๋ฒ ์น์ ํ๊ฒ ๋ต๋ณํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! ์๊ฐ ๋ชฉํ๋ก ์ด์ฌํ ์๊ฐํ๊ฒ ์ต๋๋ค :)
- 0
- 4
- 511




