안녕하세요 강사님, 강의 잘 보고 있습니다. 5강에서 info.json파일을 getResourceAsStream로 찾아서, inputStream으로 가져오는 부분이 계속 에러가 나서요.. 뭐가 문제인지 애매합니다. debug찍어보니 NullPointer에서 문제가 있다고 나오긴 하는데, File도 강의 상에 있는 경로로 만들었고 다른걸로 메서드 import를 다른걸로 입력시킨 것도 아닌데.. 뭐가 문젠지 잘 모르겠네요.. 혹시몰라, 코딩 내용과 폴더 구조 올립니다.. 답변 부탁드립니다.. ㅠㅠ
The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ npm install -g @vue/cli npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] { npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/yun-ali/.npm/_logs/2020-01-28T07_36_11_027Z-debug.log yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ yarn global add @vue/cli bash: yarn: command not found yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$ npm install -g @vue/cli npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] { npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /Users/yun-ali/.npm/_logs/2020-01-28T07_39_49_648Z-debug.log yun-aliui-MacBook-Pro:learn-vue-js-master yun-ali$
아래분은 11일인데 아직 해결이 안된건가요ㅜㅜㅜ node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/node-v72-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.2 and node@12.14.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.0.2 and node@12.14.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gypgyp ERR! find Python checking if Python is C:\Python37\python.exe ERR!gyp find PythonERR! gypfind Python - "C:\Python37\python.exe" could not be run ERR!gyp find PythonERR! Python is not set from command line or npm configuration gypfind Python ERR!gyp find Python Python is not set from environment variable PYTHON ERR!gyp find PythonERR! ********************************************************** gypfind Python checking if "python" can be used gypERR! ERR!find Python You need to install the latest version of Python. find Pythongyp - "python" is not in PATH or produced an error gypERR! ERR!find Python find Python Node-gyp should be able to find and use Python. If not, checking if "python2" can be used gypgyp ERR!ERR! find Pythonfind Python you can try one of the following options: - "python2" is not in PATH or produced an error gypgyp ERR! ERR!find Python - Use the switch --python="C:\Path\To\python.exe" find Pythongyp checking if "python3" can be used gypERR! ERR!find Python (accepted by both node-gyp and npm) find Pythongyp - "python3" is not in PATH or produced an error gyp ERR!ERR! find Pythonfind Python - Set the environment variable PYTHON checking if the py launcher can be used to find Python 2 gypgyp ERR!ERR! find Pythonfind Python - Set the npm configuration variable python: - "py.exe" is not in PATH or produced an error gypgyp ERR!ERR! find Pythonfind Python npm config set python "C:\Path\To\python.exe" checking if Python is C:\Python27\python.exe gyp gypERR! ERR!find Python For more information consult the documentation at: find Pythongyp - "C:\Python27\python.exe" could not be run gypERR! ERR!find Python https://github.com/nodejs/node-gyp#installation find Pythongyp checking if Python is C:\Python37\python.exe gypERR! ERR! find Pythonfind Python ********************************************************** - "C:\Python37\python.exe" could not be run gypgyp ERR!ERR! find Python find Python gyp gyp ERR!ERR! find Pythonconfigure error ********************************************************** gyp ERR!gyp find PythonERR! You need to install the latest version of Python. gypstack Error: Could not find any Python installation to use ERR!gyp find PythonERR! Node-gyp should be able to find and use Python. If not, gypstack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) ERR!gyp find PythonERR! you can try one of the following options: stackgyp at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gypERR! ERR! find Pythonstack - Use the switch --python="C:\Path\To\python.exe" gyp at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gypERR! ERR!find Python (accepted by both node-gyp and npm) stackgyp at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! ERR!find Python - Set the environment variable PYTHON stackgyp at exithandler (child_process.js:302:5) gypERR! ERR!find Python - Set the npm configuration variable python: stackgyp at ChildProcess.errorhandler (child_process.js:314:5) gypERR! ERR!find Python npm config set python "C:\Path\To\python.exe" stackgyp at ChildProcess.emit (events.js:210:5) gypERR! ERR!find Python For more information consult the documentation at: stackgyp at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) gypERR! ERR!find Python https://github.com/nodejs/node-gyp#installation stackgyp at onErrorNT (internal/child_process.js:456:16) gypERR! ERR!find Python ********************************************************** stackgyp at processTicksAndRejections (internal/process/task_queues.js:80:21) ERR! find Python gyp ERR! System Windows_NT 10.0.18362 gypgyp ERR!ERR! commandconfigure error "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=napi" gyp ERR!gyp cwdERR! C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 gypstack Error: Could not find any Python installation to use ERR!gyp node -vERR! v12.14.0 gypstack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) ERR!gyp node-gyp -v ERR! v5.0.5 stackgyp at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gypERR! ERR! not okstack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:302:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:314:5) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) gyp ERR! stack at onErrorNT (internal/child_process.js:456:16) node-pre-gypgyp ERR! ERR!build error stack at processTicksAndRejections (internal/process/task_queues.js:80:21) node-pre-gyp gyp ERR!ERR! stackSystem Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) node-pre-gyp Windows_NT 10.0.18362 gypERR! ERR!stack at ChildProcess.<anonymous> (C:\Users\user\lecture-vue-trello-server\node_modules\node-pre-gyp\lib\util\compile.js:83:29) commandnode-pre-gyp "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=napi" ERR!gyp ERR!stack at ChildProcess.emit (events.js:210:5) cwdnode-pre-gyp C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 gypERR! ERR!stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp node -vERR! v12.14.0 gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) node-gyp -vnode-pre-gyp v5.0.5 gypERR! System Windows_NT 10.0.18362 ERR!node-pre-gyp not okERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\lecture-vue-trello-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3 node-pre-gyp ERR! node -v v12.14.0 node-pre-gyp ERR! node-pre-gyp -v v0.10.3 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\user\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) npm WARN lecture-vue-trello-server@1.0.0 No description npm WARN lecture-vue-trello-server@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.0.2 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.0.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2020-01-28T07_36_52_640Z-debug.log
좋은 강의, 친절한 답변 너무 감사드립니다! 다름이 아니라, Angular의 서비스는 싱글톤으로 알고있는데, 부모 컴포넌트와 하위 컴포넌트가 각각 자신의 Injector로 서비스를 주입받으면, 별개의 서비스 객체를 참조하게 되는 것 같은데, 그러면 완전한 싱글톤이라기보다 injector별로 서비스 객체가 생성된다고 이해해도 괜찮은걸까요?
app.js에서 vue객체를 만들고 그안에 데이터를 정의할 때에는 data : { query: ''} 이런식으로 키-값 형식으로 정의하셨는데, vue compoment에서는 data(){ return{query:''}} 이런식으로 함수 형식으로 정의하셨더라구요. 왜그런지 알 수 있을까요?
안녕하세요, 우선 좋은강의 너무 감사드립니다. 많은 도움이 되고있습니다. 다름이 아니라 DI강의에서 예시로 Car 를 들어주셨는데 1. 기존에 Car 클래스 내부에서 Tire와 Handle객체를 직접 만들어놓았다. Tire와 Handle의 종류가 바뀌면 해당 Class로 가서 다른 타입의 Tire/Handle객체를 만들어야하는 번거로움이 있다. 2. 클래스의 생성자에 필요한 Tire와 Handle을 매개변수로 받도록하고, 팩토리에서 부품들을 모아놓고, 객체를 생성할 때 필요한 부품을 넣어 조립해준다. 1번의 번거로움을 해결하기위해 2번의 방법이 나왔다. 그런데, 2번 또한 생성자에 필요한 Tire와 Handle의 Type을 선언해놓았기 때문에, 결국 Tire와 Handle종류가 바뀌면 1번과 마찬가지로 Car 클래스로 가서 생성자에 선언되어있는 Tire와 Handle에 Type을 바꿔주어야하고, 실제 조립하는 부분도 변경해주어야하는 번거로움이 생기는거 아닌가요?? 1번과 크게 다르지 않다는 생각이 들어서요.. 물론 1번과 다르게 직접 객체는 생성하지 않겠지만요..
posts api로 mainPosts SSR으로 불러 올때, post.User.id, post.User.nickName, mainPosts 데이터도 잘 가지고 오고 있는데요. avatar에 post.User.nickName[0] 한 부분만 자꾸 리렌더링 되는데 따로 설정해야 하는게 있나요?? SSR이 안되는 건가요?
monitor( ) 코드에서 ' close(fd); ' 가 while 문 전에 위치하는데, 이 부분이 잘 해석이 안됩니다. 얼핏 생각해서는 munmap( ) 처럼 모든 일을 마무리하고 함수를 빠져 나가기 직전에 해 주는 것이 '더 적절한' 것이라 생각했는데, 실제 코드는 별 무리없이 작동하기에 더 해석이 안되는 것 같습니다. file mapping 을 통한 shared memory 방식은 실제로는 file I/O 이므로, mmap( ) 이후에 함수 빠져나가기 직전까지 계속해서 스트림이(이 표현이 맞는건지는 잘 모르겠네요..) 살아 있어야 할 것 같은데, 실제로는 그렇게 하지 않아도 코드가 잘 실행되서 잘 이해가 안됩니다.