appkr / l5code

라라벨로 배우는 실전 PHP 웹 프로그래밍 (출판용 소스코드)
MIT License
63 stars 38 forks source link

[WIndows] npm install이 안되면 yarn을 이용해 주세요. #10

Open appkr opened 7 years ago

appkr commented 7 years ago

라라벨 5.3의 package.json이 의존하는 Node.js 패키지 중에 하나에 대한 의존성이 깨진 것 같습니다.

~/l5code(master) $ npm install 
# npm ERR! git clone C:\Users\suchc\AppData\Roaming\npm-cache\_git-remotes\git# -https-github-com-jeroennoten-webpack-stream-git-patch-1-60be6dae 
# ...
# npm ERR! fatal: '/cygdrive/c/Users/suchc/AppData/Roaming/# npm-cache/_git-remotes/#git-github-com-jeroennoten-webpack-stream-git-patch-1-b24e730a/C:\Users\such c\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jeroennoten-webpack- stream-git-patch-1-b24e730a' does not appear to be a git repository
# npm ERR! fatal: Could not read from remote repository.
# npm ERR!
# npm ERR! Please make sure you have the correct access rights
# npm ERR! and the repository exists.
# npm ERR!
# npm ERR!
# npm ERR! If you need help, you may report this error at:
# npm ERR! <https://github.com/npm/npm/issues>
# 
# npm ERR! Please include the following file with any support request:
# npm ERR! C:\Users\suchc\.babun\cygwin\home\suchc\l5code\npm-debug.lognpm # ERR! Windows_NT 10.0.14393
# npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program  Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "suchc@homepc"
# npm ERR! node v6.10.1
# npm ERR! npm v3.10.10
# npm ERR! code E404
# 
# npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/# suchc
# npm ERR! 404
# npm ERR! 404 'suchc' 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 ERR! Please include the following file with any support request:
# npm ERR! C:\Users\suchc\.babun\cygwin\home\suchc\l5code\npm-debug.log

npm 대신 yarn을 사용하여 문제를 해결하시기 바랍니다.

~ $ npm install --global yarn

~ $ yarn --version
# 0.21.3

~ $ cd l5code
~/l5code(master) $ yarn install
# ...
#  | | +-- string_decoder@0.10.31
#  | | `-- util-deprecate@1.0.2
#  | `-- xtend@4.0.1
#  `-- validate-npm-package-license@3.0.1
#  +-- spdx-correct@1.0.2
#  | `-- spdx-license-ids@1.2.2
#  `-- spdx-expression-parse@1.0.4

~/l5code(master) $ gulp
# 그림으로 첨부합니다.

yarn

이 문제점은 이용준님이 제보해주셨습니다. 고맙습니다.