-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from zhuangya/missing-package-json
add: missing package.json
- Loading branch information
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ You can change `learnyoureact` to any name you like. | |
|
||
Start by installing the required modules. Run this command: | ||
|
||
`$ npm install react react-dom express body-parser [email protected] [email protected]` | ||
`$ npm install --save react react-dom express body-parser [email protected] [email protected]` | ||
|
||
You can see `node_modules` directory maked. | ||
Files of module is in the directory. | ||
|
@@ -18,8 +18,9 @@ Folder structure is below. | |
|
||
``` | ||
learnyoureact | ||
├── program.js | ||
└── node_modules | ||
├── node_modules/ | ||
├── package.json | ||
└── program.js | ||
``` | ||
|
||
Copy the code below into `program.js`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,17 @@ package.json 하여 npm 은 어느 폴더에 패키지 를 설치 하거나 판 | |
|
||
필요한 모듈을 설치하려면 밑의 명령을 실행해 보세요. | ||
|
||
`$ npm install react react-dom express body-parser [email protected] [email protected]` | ||
`$ npm install --save react react-dom express body-parser [email protected] [email protected]` | ||
|
||
이제 `node_modules` 디렉터리가 만들어진 것을 볼 수 있습니다. | ||
|
||
그런 다음, `program.js`를 만듭니다 폴더 구조는 다음과 같습니다. | ||
|
||
``` | ||
learnyoureact | ||
├── program.js | ||
└── node_modules | ||
├── node_modules/ | ||
├── package.json | ||
└── program.js | ||
``` | ||
|
||
`program.js`에 다음 코드를 복사하세요. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ package.jsonによって、npmはどのフォルダにパッケージをイン | |
それができたら、そのフォルダの中にモジュールをインストールしましょう。 | ||
以下のコマンドを実行してください。 | ||
|
||
`$ npm install react react-dom express body-parser [email protected] [email protected]` | ||
`$ npm install --save react react-dom express body-parser [email protected] [email protected]` | ||
|
||
`node_modules` というフォルダが作成されたかと思います。その中にモジュールのフォルダがあります。 | ||
|
||
|
@@ -19,8 +19,9 @@ package.jsonによって、npmはどのフォルダにパッケージをイン | |
|
||
``` | ||
learnyoureact | ||
├── program.js | ||
└── node_modules | ||
├── node_modules/ | ||
├── package.json | ||
└── program.js | ||
``` | ||
|
||
`program.js` には以下のように記述してください。 | ||
|