You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,41 +19,43 @@ npm install
19
19
npm start
20
20
```
21
21
22
-
## Installing and running workshop modules
22
+
## Installing and running individual nodeschool workshop packages
23
23
24
-
Please refer to the [nodeschool site](http://nodeschool.io/#workshoppers) for detailed instructions. In short, there two ways to install the workshop modules :
24
+
Please refer to the [nodeschool site](http://nodeschool.io/#workshoppers) for detailed instructions. In short, there are two ways to install the workshop modules :
25
25
26
26
-**Globally** (easiest)
27
27
28
-
`npm install -g module_name`
28
+
Depending on the npm version, `npm packages` get installed in different routes. To have access to them globally. Do
29
+
30
+
`npm install -global package_name` or `npm install -g package_name`
31
+
32
+
If you get a `permission denied` **error**. Run the previous command with `sudo`.
33
+
34
+
`sudo npm install -g package_name`
29
35
30
-
This will make the module available globaly in your `$PATH`. Just run it by calling it. **For example :**
36
+
Now just run it by simply calling it. **For example :**
If you would like to keep all the node_school workshop modules inside a custom directory while you work through them. **Using our previous example :**
50
+
If you would like to keep all the node_school workshop packages inside a custom directory while you work through them. **Using our previous example :**
49
51
50
52
```
51
53
~ mkdir -p node_school
52
-
cp node_school
54
+
cd node_school
53
55
npm install javascripting
54
56
```
55
57
56
-
From within the `node_school` directory now run `node_modules/learnyounode/bin/javasripting` to start it.
58
+
From within the `node_school` directory now run `node_modules/learnyounode/bin/javascripting` to start it.
57
59
58
60
This is because you need to run the executable from within the directory itself since it's not available globally in your `$PATH`
0 commit comments