Update docs regarding npm config ignore-scripts flag

This commit is contained in:
Matic Plešec
2020-10-18 18:19:09 +02:00
parent 48f2c93978
commit edeb5e45a3
+18
View File
@@ -124,3 +124,21 @@ the root directory:
```bash
yarn workspace backend start
```
### Troubleshooting
#### Cannot find module
You may encounter an error similar to below:
```
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '../build/Debug/nodegit.node'
```
This can occur if an npm dependency is not completely installed. Because some
dependencies run a post-install script, ensure that both your npm and yarn
configs have the `ignore-scripts` flag set to `false`.