Skip to content

Commit d673071

Browse files
Added more npm problem fixes
1 parent 336c0fd commit d673071

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

npm-fixes.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ This is more of a workaround if Solution 1 doesn't work. You can install a packa
1818

1919
`npm install nodemon --save-dev`
2020

21-
Then in the `package.json` file, change the `watch:css` task to:
21+
Then in the `package.json` file, add the following tasks:
2222

23-
`"watch:sass": "nodemon -e scss -x \"npm run compile:sass\""`
23+
```
24+
"compile:sass": "node-sass sass/main.scss css/style.comp.css"
25+
"watch:sass": "nodemon -e scss -x \"npm run compile:sass\""
26+
```
2427

2528
### Solution 3
2629

@@ -36,9 +39,9 @@ On Windows you will have to escape the `"` in the autoprefixer task, just like t
3639

3740
## Q3: General problems
3841

39-
If your NPM packages don't work at all, please make sure you have at least node `v6.x.x` installed on your computer. You can check your verison with `node -v`.
42+
If your NPM packages don't work at all, please make sure you have at least node `v6.x.x` installed on your computer. You can check your version with `node -v`.
4043

41-
You can also try setting all your NPM packages to the same versions used in the videos. I works like described in **Q1** of this document (`node-sass` example). These are the versions I used in the videos:
44+
You can also try setting all your NPM packages to the same versions used in the videos. It works like described in **Q1** of this document (`node-sass` example). These are the versions I used in the videos:
4245

4346
```
4447
"autoprefixer": "^7.1.4",
@@ -48,4 +51,4 @@ You can also try setting all your NPM packages to the same versions used in the
4851
"postcss-cli": "^4.1.1"
4952
```
5053

51-
I will keep this document updated if more issues arise.
54+
**I will keep this document updated if more issues arise.**

0 commit comments

Comments
 (0)