์๋ ํ์ญ๋๊น,
๋ด ์ฌ์ฉ์ ํด๋์ ๋ด Windows 7 ์ปดํจํฐ typescript ๋ฒ์ 2.3.1์ ์ค์นํ์ต๋๋ค.
"C:UsersmateiaAppDataRoamingnpmnode_modulestypescript"
npm install -g tslint
์คํํ๋ฉด ์๋์ ๊ฐ์ ๊ฒฝ๊ณ ๊ฐ ๋ํ๋ฉ๋๋ค.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev but none was installed.
npm WARN [email protected] requires a peer of typescript@>=2.0.0 || >=2.0.0-dev || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >= 2.4.0-dev but none was installed.
// code snippet
tslint.json
๊ตฌ์ฑ:
๊ฒฝ๊ณ ๋ฅผ ์ ๊ฑฐํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํด ์ฃผ์๊ฒ ์ต๋๊น?
๋ด ์ฌ์ฉ์ ํด๋์ ๋ด Windows 7 ์ปดํจํฐ typescript ๋ฒ์ 2.3.1์ ์ค์นํ์ต๋๋ค.
"C:UsersmateiaAppDataRoamingnpmnode_modulestypescript"
์ด๊ฒ ๋ฌด์จ ๋ป์ธ์ง ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. npm์ด ์ ์ธ๊ณ์ ์ผ๋ก ์ค์น๋ ๋ชจ๋์ ๋ฃ๋ ๊ณณ์ ๋๊น?
npm install -g typescript
๋ฅผ ์คํํ์ต๋๊น?
์, ๋จผ์ npm install -g typescript๋ฅผ ์ฌ์ฉํ์ฌ typescript๋ฅผ ์ค์นํ์ต๋๋ค.
๊ทธ๋ฐ ๋ค์ tslint๋ฅผ ์ค์นํ๋ ค๊ณ ํ๊ณ ์์ ๊ฒฝ๊ณ ๋ฅผ ๋ฐ์์ต๋๋ค.
๊ทธ๋ฌ๋ ๊ฐ์ฌํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค. ์ฌ๊ธฐ์ ๋ด๊ฐ ํ ์ผ์ด ์์ต๋๋ค.
npm ์ ๊ฑฐ -g ์ ํ ์คํฌ๋ฆฝํธ
npm install -g tslint ์ ํ ์คํฌ๋ฆฝํธ
๊ณ ๋ง์ต๋๋ค ;)
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์, ๋จผ์ npm install -g typescript๋ฅผ ์ฌ์ฉํ์ฌ typescript๋ฅผ ์ค์นํ์ต๋๋ค.
๊ทธ๋ฐ ๋ค์ tslint๋ฅผ ์ค์นํ๋ ค๊ณ ํ๊ณ ์์ ๊ฒฝ๊ณ ๋ฅผ ๋ฐ์์ต๋๋ค.
๊ทธ๋ฌ๋ ๊ฐ์ฌํฉ๋๋ค. ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ต๋๋ค. ์ฌ๊ธฐ์ ๋ด๊ฐ ํ ์ผ์ด ์์ต๋๋ค.
npm ์ ๊ฑฐ -g ์ ํ ์คํฌ๋ฆฝํธ
npm install -g tslint ์ ํ ์คํฌ๋ฆฝํธ