minimatch
μ μ΅μ λ²μ μ μ¬μ©νλλ‘ ν¨ν€μ§λ₯Ό μ
λ°μ΄νΈνμκ² μ΅λκΉ?
νμ¬ jshint
μμ μ¬μ©νλ λ²μ μμ μ¬μ© μ€λ¨ κ²½κ³ κ° λ°μν©λλ€.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
(κ·λλΌλ―Έ)
+1
+1
μ κ³ κ°μ¬ν©λλ€! μ¬κΈ°μμ ν 리νμ€νΈκ° κ°λ₯ν©λλ€: gh-2953.
λ§μ λΆλ€μ΄ μ΄λ¬ν λ³νλ₯Ό μνλ€λ κ²μ μ μ μμ΅λλ€. μ λ° μΈλ΄μ¬μ κ°μ§κ³
μ±
μκ° μκ² μ’
μμ±μ μ
λ°μ΄νΈνλ €λ©΄ λ³κ²½ λ‘κ·Έλ₯Ό μ£Όμ κΉκ² κ²ν ν΄μΌ ν©λλ€.
gh-2953μ΄ μ΄μ λ³ν©λμμ΅λλ€. λ€μμλ λͺ κ°μ§ λ²κ·Έ μμ μ λ λ°κ³ μΆμ΅λλ€.
ν¨μΉ 릴리μ€μ΄μ§λ§ μ΄λ² μ£Ό μμ npmμμ μ¬μ©ν μ μμ΅λλ€.
μ λ²μ μ λ°μ μ μμ΄μΌ ν©λκΉ? μ΄μ μ λ μ μ PCλ₯Ό λ§λ€μλλ° μ½λ₯΄λλ°κ° μ ν μλνμ§ μμ΅λλ€. μ΄ κ²½κ³ κ° νμλ©λλ€("npm update -g [email protected] " μ λ°μ΄νΈλ₯Ό μλνμ§λ§ μλνμ§ μμμ΅λλ€. NPM λ° λ Έλλ₯Ό μ κ±°/μ¬μ€μΉνμ΅λλ€. cordovaλ₯Ό μ€μΉνλ €κ³ ν λ minimatch μ€λ₯κ° λ°μν λ€μ μ€μΉ κ²°κ³Όμ λν κ°λΉμ§ λμΉ κ·Έλ¬λ©΄ λ΄κ° μ½λ₯΄λλ° λͺ λ Ήμ μ¬μ©ν μ μμ΅λλ€.
PM> npm μ
λ°μ΄νΈ -g [email protected]
PM> npm install -g μ½λ₯΄λλ°
npm : npm WARN deprecated [email protected] : RegExp DoS λ¬Έμ λ₯Ό λ°©μ§νλ €λ©΄ minimatch 3.0.2 μ΄μμΌλ‘ μ
λ°μ΄νΈνμμμ€.
ν:1 λ¬Έμ:1 μμ
npm
κ²½κ³ νλ€
ν¨ν€μ§.json
[email protected] README λ°μ΄ν° μμ
C:\Users\afriedman\AppData\Roaming\npm\cordova -> C:\Users\afriedman\AppData\Roaming\npm\node_modules\cordova\bin\cordova
[email protected] C:\Users\afriedman\AppData\Roaming\npm\node_modules\cordova
ΞΓΆΒ£ΞΓΆΓΞΓΆΓ λ°μ€ @1.7.0
ΞΓΆ Β£ ΞΓΆΓΞΓΆΓ [email protected]
ΞΓΆΒ£ΞΓΆΓΞΓΆΓ [email protected] ([email protected])
μ
λ°μ΄νΈ μλ¦Ό@ 0.5.0 ([email protected], [email protected], λΆν@1.1.3, [email protected], [email protected], [email protected]) .0, μ΅μ λ²μ @1.0.1)
ΞΓΆΒ£ΞΓΆΓΞΓΆΓ [email protected] ([email protected], [email protected], [email protected], λΆν@1.1.3, [email protected], [email protected]) .3, κ΅¬μ± μ μ₯μ@1.4.0, ν°ν μΏ ν€@2.2.2, μμ²@2.72.0, λ¬Έμμ@0.10.1)
ΞΓΆΒ£ΞΓΆΓΞΓΆΓ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected] , [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
ΞΓΆΓΆΞΓΆΓΞΓΆΓ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected] .3, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] , [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], cordova [email protected], [email protected])
PM> μ½λ₯΄λλ°λ testapp com.test.testapp testappμ λ§λλλ€.
cordova : 'cordova'λΌλ μ©μ΄λ cmdlet, ν¨μ, μ€ν¬λ¦½νΈ νμΌ λλ μ€ν κ°λ₯ν νλ‘κ·Έλ¨μ μ΄λ¦μΌλ‘ μΈμλμ§ μμ΅λλ€. μ΄λ¦μ μ² μλ₯Ό νμΈνκ±°λ κ²½λ‘κ° ν¬ν¨λ κ²½μ° κ²½λ‘κ° μ¬λ°λ₯Έμ§ νμΈνμμμ€.
κ·Έλ¦¬κ³ λ€μ μλνμμμ€.
ν:1 λ¬Έμ:1 μμ
PM>
μ΄κ²μ΄ μμΈμ΄ λ μ μκΈ°λ₯Ό λ°λΌλ©΄μ μ΄κ²μ λ°λ₯μ λλ¬νλ €κ³ λ Έλ ₯νκ³ μμ΅λκΉ? λλ μμ§ν κ·Έκ²μ΄ μ½λ₯΄λλ° λ¬Έμ λΌκ³ μκ°νμ§ μμ§λ§ ν릴 μ μμ΅λλ€.
@afried101 μ μ΄μ μ견μ μ°Έμ‘°νμμμ€. μ΄κ²μ μμ§ npmμ κ²μλμ§ μμμ΅λλ€.
νμ§λ§ κ²½κ³ λ‘ μΈν΄ λΉλκ° μ€ν¨νλ€λ μ¬μ€μ λλμ΅λλ€. npmμμ μ¬μ© μ€λ¨μ΄ μ΄λ»κ² μλνλμ§ μ΄ν΄νμ§ λͺ»νμ΅λλ€. λ‘컬μμ μ¬μ ν μ€λ₯ μμ΄ JSHintλ₯Ό μ€μΉν μ μμ΅λλ€( npm install jshint
, Node 6.2.0 λ° npm 3.8.9 μ¬μ©)
npm WARN deprecated [email protected] : RegExp DoS λ¬Έμ λ₯Ό λ°©μ§νλ €λ©΄ minimatch 3.0.2 μ΄μμΌλ‘ μ λ°μ΄νΈνμμμ€.
μ΄λ»κ² ν΄μΌ νλμ??? μ΄λ ν μ μ
λμμ λλ¦¬κ³ μΆμ§λ§ μ λ³΄κ° λΆμ‘±ν©λλ€. λ©μμ§ μΈμ
ν°λ―Έλμ μΈμλ κ²½μ° μ΄κ²μ΄ μ λ―ΈμΉλ μν₯μ μ€λͺ
ν΄ μ£Όμκ² μ΅λκΉ?
λΉμ μ μμ
νλ¦? λν Node.js λ° npm λ²μ μ ν¬ν¨νμμμ€.
μ¬μ©.
Mike, λ΄ λ¬Έμ λ NPM/Node/Minimatchκ° μλλλ€. κ·Έκ²μ΄ 무μμΈμ§ λͺ¨λ₯΄κ² μ΅λλ€ - νλ‘μ νΈκ° μλ²μμμμ΅λλ€ - λ³κ²½λ λͺ¨λ κ²μ μλ‘μ΄ VS15 μ€μΉμμ΅λλ€ ... κ·Έλ¬λ NPM λμ IDEλ₯Ό ν΅ν΄ μ νλ‘μ νΈλ₯Ό λ§λ€μκ³ npmμ λ΄ cordova λͺ λ Ήμ΄ μμ΅λλ€. κ·Έλ¦¬κ³ λͺ¨λ κ²μ΄ μλ©λλ€. "IDEλ₯Ό ν΅ν΄ μ νλ‘μ νΈ λ§λ€κΈ°" μΈμ 무μμ΄ μμ λμλμ§ λ§ν μ μμ΅λλ€.
λ€μ λ§ν¬ νμ
https://github.com/ashleygwilliams/npm-sandbox/tree/master/npm3/example1
μ€λ λ Έλ λΉλ μΆλ ₯ - μ΅μ λ²μ μ 리ν¬μ§ν 리μ ν¨κ»...
npm WARN deprecated [email protected] : RegExp DoS λ¬Έμ λ₯Ό λ°©μ§νλ €λ©΄ minimatch 3.0.2 μ΄μμΌλ‘ μ λ°μ΄νΈνμμμ€.
μ΄ μλ
tq CarolinaKadix μλ²½νκ² μλνμ΅λλ€. μ§κΈκΉμ§ λ¬Έμ μμ
CarolinaKadixμκ² μ λ§ κ°μ¬ν©λλ€. λ§μ λμμ μ£Όμ μ Ubuntu Mateλ₯Ό μ¬μ©νκ³ μμΌλ©° κ·νμ νμ΄ μ΄ λ¬Έμ λ₯Ό ν΄κ²°νλλ‘ μ΄λμμ΅λλ€.
λ°©κΈ λμΌν μ€λ₯κ° λ°μνκΈ° μμνμΌλ©° λ€μ μ€μΉλ₯Ό μλνλλ°λ μ½λ₯΄λλ°κ° λ μ΄μ λΉλλμ§ μμ΅λλ€. λ΄ Macμμ "sudo" μ λμ¬λ₯Ό μ¬μ©νμ¬ @CarolinaKadix λ°©λ²μ μλνμ΅λλ€. λ°λΌμ μλ μ€ν¬λ¦°μ·μμ λμΌν μ€λ₯κ° λ°μν λκΉμ§ λͺ¨λ λμΌνκ² μ§νλμμ΅λλ€. μ΄λ€ μ견??
μ λ°μ΄νΈ: λͺ¨λ "node_modules" νμΌμ μμ νκ³ npm & node 0.oλ₯Ό μ κ±°ν λ€μ λ€μ μ€μΉνμΌλ―λ‘ μ¬μ ν λμΌν λ¬Έμ κ° κ³μλκ³ npmμΌλ‘ κΆν λ¬Έμ λ₯Ό λ€μ μμ νλλ°λ κ²½λ‘ λ¬Έμ λΌκ³ ν©λλ€.
@erhanyasar μμ λμΌν λ¬Έμ κ° μμ
npm install -g [email protected]
@pixelcanvas λ μλνμ§ μμμ΅λλ€.
μ, μ΄λ―Έ λμΌν λ°©μμΌλ‘ μλνμ§ μλλ€κ³ μΈκΈνμ΅λλ€ π
λλ νΈμν°μμ npmκ³Ό μ΄μΌκΈ°νκ³ κ·Έλ€μ μ€λκΉμ§ μ λ°μ΄νΈ λ κ²μ΄λΌκ³ λλ΅νμ΅λλ€. μ΄μ¨λ μ€λ λ€μ "usr/local/lib" & "usr/local/include" λ° μ¬μ©μμ λ ν°λ―Έλκ³Ό ν΄λμμ "λ Έλ"μ "npm"μ λͺ¨λ μ κ±°νμ΅λλ€. κ·Έλ° λ€μ "μ¬κ°ν μ κ±°"λ₯Ό μλνμ΅λλ€. κ·Έλ¦¬κ³ λ―Έλ 맀μΉκ° μ λ°μ΄νΈ λ μνμμ nodeμ npmμ λ€μ μ€μΉνλ €κ³ νμ΅λλ€. κ·Έλ° λ€μ μλνμ§λ§ λμΌν μ€λ₯κ° ν λ² νμλμ§λ§ λ‘λλ©λλ€. @pixelcanvas @landing-eagleλ λκ°μ΄ μλνκ³ μ±κ³΅νκΈ°λ₯Ό λ°λλλ€.
@erhanyasar μ€μ λ‘ κ·Έκ²μ λλ₯Ό μν΄ μΌνμ΅λλ€ :-)
κ·Έλ npm \ npm-modules \ minimatch \ λλ ν 리μ mini matchλ₯Ό μ€μΉνμ΅λλ€. npm\κ³Ό μΌμΉνλλ‘ μ§μ μ μ‘λ νμΌμ΄ νμν©λλ€.
μ΄κ²μ΄ μμ νλ¦μ λ―ΈμΉλ μν₯μ μ€λͺ ν΄ μ£Όμκ² μ΅λκΉ?
@jugglinmike cliμ minimatch λ²μ μ 보μ λ¬Έμ κ° μμ΅λλ€. κ°λ₯ν κ²½μ° cliλ₯Ό νμ¬ λ²μ μΌλ‘ μ κ·Έλ μ΄λνμμμ€. κ·Έλ¬λ©΄ minimatch imhoλ μ κ·Έλ μ΄λλ©λλ€.
"minimatch" λΌμ΄λΈλ¬λ¦¬μ μ λ°μ΄νΈλ λ²μ μ΄ ν¬ν¨λ JSHint λ²μ 2.9.3μ λ°©κΈ μΆμνμ΅λλ€.
μλ‘ μ€μΉν νμλ μ¬μ ν μ΄ λ¬Έμ κ° μμ΅λλ€. μΆμ² μ¬νμ΄ μμ΅λκΉ? 미리 κ°μ¬λ립λλ€.
μλ
νμΈμ @slashkite
μλ₯Ό λ€μ΄ μ²μνκ³ μλ‘ μ€μΉνκ³ λ―Έλ 맀μΉλ₯Ό μ
λ°μ΄νΈ νμ΅λκΉ?
@CarolinaKadix μ 보 κ°μ¬ν©λλ€.
λλ μΌλ°μ μΌλ‘ 3.0.3κ³Ό grunt-sync 0.6.2μμ minimatchλ₯Ό κ°μ§κ³ μμ΅λλ€.
μ μΈκ³μ μΌλ‘ λμ μ€μΉν λ minimatch 2.0.10μ μ¬μ©νλ grunt-sync 0.5.2κ° νμν©λλ€.
βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ [email protected]
β βββ [email protected]
λ΄κ° λκ° μλͺ»νκ³ μμ΅λκΉ?
μ κ²½κ³ κ° μλκ² μ΄μνλ€μ
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/ng -> /usr/local/lib/node_modules/angular-cli/bin/ng
μΌμ§λΌλ
β ~ npm -v minimatch
4.1.1
/usr/local/lib
βββ¬ [email protected]
β βββ [email protected]
β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ¬ [email protected]
β β βββ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β βββ [email protected]
@tkhuynh npm -v minimatch
λ μ€μΉν npm
μ λ²μ μ μΈμν©λλ€.
@KenanY ν΄λΉ κ²½κ³ λ₯Ό μ°ννκΈ° μν μ μ μ¬νμ΄ μμ΅λκΉ?
λλ κ·Έκ²μ΄ μ΄μ νμΌ μΈνΈ λ²μ λλ¬Έμ΄λΌκ³ μκ°ν©λλ€.
@slashkite μ
λ°μ΄νΈν λ°©λ²μ΄ μμ΅λκΉ?
angular-cliλ₯Ό μ€μΉνκΈ° μ μλ μ΄ μμ
μ μννμ§λ§ μ¬μ ν ν΄λΉ κ²½κ³ κ° νμλ©λλ€.
sudo npm install -g [email protected]
/usr/local/lib
βββ [email protected]
@tkhuynh minimatch
λ₯Ό μ μμ μΌλ‘ μ€μΉνλ©΄ λμμ΄ λμ§ μμ΅λλ€. minimatch
μ λν fileset
μ μ’
μμ±μ μ
λ°μ΄νΈν λ€μ dep νΈλ¦¬κΉμ§ μ νλλλ‘ ν΄μΌ ν©λλ€.
λλ λκ°μ, μ ν κ³ μ³μ§μ§ μμ
npm install -g minimatch@latest
κ°μ¬ν©λλ€ CarolinaKadix μλ²½νκ² μλνμ΅λλ€
κ°μ₯ μ μ©ν λκΈ
μ΄ μλ