Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to "npm start" a fresh clone of repo. #819

Closed
flukeout opened this issue Oct 4, 2017 · 9 comments
Closed

Unable to "npm start" a fresh clone of repo. #819

flukeout opened this issue Oct 4, 2017 · 9 comments

Comments

@flukeout
Copy link

flukeout commented Oct 4, 2017

I followed the instructions in the repo, and I'm getting an error when running npm start.

I'm running...

  • Node 6.8.1
  • npm 3.10.8
  • Python 2.7.10

cc @gvn @alanmoo


Here's the relevant part of my npm-debug.log

17 error Darwin 15.4.0
18 error argv "/usr/local/Cellar/node/6.8.1/bin/node" "/usr/local/bin/npm" "start"
19 error node v6.8.1
20 error npm  v3.10.8
21 error code ELIFECYCLE
22 error [email protected] start: `npm i && npm run build-uncompressed && run-p server watch:**`
22 error Exit status 1
23 error Failed at the [email protected] start script 'npm i && npm run build-uncompressed && run-p server watch:**'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the network package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     npm i && npm run build-uncompressed && run-p server watch:**
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs network
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls network
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
@flukeout
Copy link
Author

flukeout commented Oct 4, 2017

With the help of @patjouk we were able to get up and running. I'm going to leave this open until tomorrow, when I'll help @taisdesouzalessa get her environment up and running. I'll use that session to make notes and update the README.md files in both repos.

@alanmoo
Copy link
Contributor

alanmoo commented Oct 5, 2017

See also #685

@gvn
Copy link
Contributor

gvn commented Oct 5, 2017

I'd also definitely recommend updating Node. It's up to 8.6.0 now.

@flukeout
Copy link
Author

flukeout commented Oct 5, 2017

First, clone the repo, assuming you haven't forked your own version...

In network folder

  • cp env.default .env

In network-api folder

  • virtualenv -p python3 venv
  • source venv/bin/activate
    • You should see (venv) in front of the command line prompt now
  • pip install -r ../requirements.txt
  • python app/manage.py migrate
  • python app/manage.py createsuperuser
    • Leave blank for mozilla
    • Use whatever email
    • Use whatever password

In network folder

  • npm start

@flukeout
Copy link
Author

flukeout commented Oct 5, 2017

cc @cadecairos @gideonthomas @gvn - the instructions above work on a Mac assuming all of the dependencies are installed. I've verified this by running through the process a few times my self and with @taisdesouzalessa

@alanmoo
Copy link
Contributor

alanmoo commented Oct 6, 2017

Thanks for documenting all that out, @flukeout!

@flukeout
Copy link
Author

flukeout commented Oct 6, 2017

I'd also recommend adding install instructions for the main dependencies, as well as explanations of what they are.

@flukeout
Copy link
Author

flukeout commented Oct 6, 2017

What i used...

  • Installing home brew...
    • * $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Use brew to get python
    • brew install python
  • sudo easy_install pip to get PIP
  • pip install virtualenv to install virtualenv

gvn pushed a commit that referenced this issue Aug 27, 2018
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.7.8 to 0.8.2.
<details>
<summary>Release notes</summary>

*Sourced from [shelljs's releases](https://github.com/shelljs/shelljs/releases).*

> ## v0.8.1
> **Closed issues:**
> 
> - Exec failing with internal error when piping large output [\[#818](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)
> - using sed to replace just the first occurrence of a string [\[#813](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)
> 
> **Merged pull requests:**
> 
> - Revert "refactor\(exec\): remove paramsFile \(\#807\)" [\[#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/819) ([nfischer](https://github.com/nfischer))
> 
> ## v0.8.0
> **Closed issues:**
> 
> - Snyk vulnerability DB reporting command injection vulnerability in ShellJS [\[#810](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)
> - chore: upgrade nyc [\[#803](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)
> - Update CI to use Node v9 [\[#799](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)
> - Link to FAQ wiki section in our issue template [\[#787](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)
> - Is it possible to get a js library\(file\) for ShellJS [\[#776](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)
> - 48, [\[#774](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)
> - 47 [\[#773](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)
> - Exec function calls JSON.stringify on command [\[#772](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)
> - getting different result from terminal and with shelljs  [\[#769](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)
> - test\(\) does not support -w and -x options [\[#768](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)
> - Snyk "high severity" issue [\[#766](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)
> - Snyk "high security [\[#765](https://github-redirect.dependabot.com/shelljs/shelljs/issues/765)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/765)
> - ShellJS doesn't respect NPM Registry being set outside of it [\[#761](https://github-redirect.dependabot.com/shelljs/shelljs/issues/761)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/761)
> - Run second shell script [\[#756](https://github-redirect.dependabot.com/shelljs/shelljs/issues/756)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/756)
> - shelljs seems NOT compatible with nexe under CentOS 6.5 [\[#754](https://github-redirect.dependabot.com/shelljs/shelljs/issues/754)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/754)
> - Feature request: pushd/popd -q option [\[#753](https://github-redirect.dependabot.com/shelljs/shelljs/issues/753)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/753)
> - cat doesn't support '-n' option [\[#750](https://github-redirect.dependabot.com/shelljs/shelljs/issues/750)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/750)
> - shelljs run xcodebuild error [\[#749](https://github-redirect.dependabot.com/shelljs/shelljs/issues/749)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/749)
> - Add wrappers around fs.statSync and fs.lstatSync [\[#745](https://github-redirect.dependabot.com/shelljs/shelljs/issues/745)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/745)
> - Improve coverage for exec\(\) [\[#742](https://github-redirect.dependabot.com/shelljs/shelljs/issues/742)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/742)
> - Improve coverage for head\(\) [\[#741](https://github-redirect.dependabot.com/shelljs/shelljs/issues/741)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/741)
> - shelljs is no longer used in PDF.js [\[#737](https://github-redirect.dependabot.com/shelljs/shelljs/issues/737)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/737)
> - ls doesn't follow links to directories [\[#733](https://github-redirect.dependabot.com/shelljs/shelljs/issues/733)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/733)
> - Add test for `ls regular-file.txt` [\[#732](https://github-redirect.dependabot.com/shelljs/shelljs/issues/732)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/732)
> - shelljs.exec hangs when password it's asked [\[#716](https://github-redirect.dependabot.com/shelljs/shelljs/issues/716)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/716)
> - Clean up common tests [\[#714](https://github-redirect.dependabot.com/shelljs/shelljs/issues/714)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/714)
> - Can't run docker with exec\(\) \(the input device is not a TTY\) [\[#680](https://github-redirect.dependabot.com/shelljs/shelljs/issues/680)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/680)
> - Cant get encoding buffer to work on exec [\[#675](https://github-redirect.dependabot.com/shelljs/shelljs/issues/675)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/675)
> - Set up Codecov for the project [\[#671](https://github-redirect.dependabot.com/shelljs/shelljs/issues/671)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/671)
> - ShellJS: internal error Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' [\[#514](https://github-redirect.dependabot.com/shelljs/shelljs/issues/514)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/514)
> - Feature request: provide a way to skip option parsing [\[#778](https://github-redirect.dependabot.com/shelljs/shelljs/issues/778)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/778)
> - Switch to os.homedir\(\) when we move to v4+ [\[#683](https://github-redirect.dependabot.com/shelljs/shelljs/issues/683)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/683)
> - Drop support for v0.12 [\[#647](https://github-redirect.dependabot.com/shelljs/shelljs/issues/647)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/647)
> - feature: echo -n [\[#559](https://github-redirect.dependabot.com/shelljs/shelljs/issues/559)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/559)
> - Don't kill the node process upon unexpected error [\[#483](https://github-redirect.dependabot.com/shelljs/shelljs/issues/483)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/483)
> - Echo doesn't return value ending in a trailing newline [\[#476](https://github-redirect.dependabot.com/shelljs/shelljs/issues/476)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/476)
> - Synchronous exec stalls permenantly when there is an error/w the shell [\[#7](https://github-redirect.dependabot.com/shelljs/shelljs/issues/7)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/7)
></table> ... (truncated)
</details>
<details>
<summary>Changelog</summary>

*Sourced from [shelljs's changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md).*

> ## [v0.8.2](https://github.com/shelljs/shelljs/tree/v0.8.2) (2018-05-08)
> [Full Changelog](shelljs/shelljs@v0.8.1...v0.8.2)
> 
> **Closed issues:**
> 
> - High severity vulnerability in shelljs 0.8.1 [\[#842](https://github-redirect.dependabot.com/shelljs/shelljs/issues/842)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/842)
> - Add test for ls\(\) on a symlink to a directory [\[#795](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795)
> - Harden shell.exec by writing the child process in a source file [\[#782](https://github-redirect.dependabot.com/shelljs/shelljs/issues/782)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/782)
> - shell.exec\(\) doesn't respond correctly to config.fatal = true [\[#735](https://github-redirect.dependabot.com/shelljs/shelljs/issues/735)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/735)
> - Merge 'exec: internal error' with ShellJSInternalError [\[#734](https://github-redirect.dependabot.com/shelljs/shelljs/issues/734)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/734)
> - exec returning null from command [\[#724](https://github-redirect.dependabot.com/shelljs/shelljs/issues/724)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/724)
> - Only Get Stderr from Exec [\[#371](https://github-redirect.dependabot.com/shelljs/shelljs/issues/371)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/371)
> - Execute child.stdout.on before child.on\("exit"\)  [\[#224](https://github-redirect.dependabot.com/shelljs/shelljs/issues/224)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/224)
> 
> **Merged pull requests:**
> 
> - Workaround codecov bug of miscalculation of coverage \(\#795\) [\[#838](https://github-redirect.dependabot.com/shelljs/shelljs/issues/838)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/838) ([dwi2](https://github.com/dwi2))
> - Update doc comments and regenerate README.md. [\[#825](https://github-redirect.dependabot.com/shelljs/shelljs/issues/825)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/825) ([Zearin](https://github.com/Zearin))
> - chore: update contributing guidelines [\[#817](https://github-redirect.dependabot.com/shelljs/shelljs/issues/817)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/817) ([nfischer](https://github.com/nfischer))
> - chore\(lint\): don't allow excess trailing newlines [\[#816](https://github-redirect.dependabot.com/shelljs/shelljs/issues/816)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/816) ([nfischer](https://github.com/nfischer))
> - Remove separate "internal error" from exec [\[#802](https://github-redirect.dependabot.com/shelljs/shelljs/issues/802)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/802) ([freitagbr](https://github.com/freitagbr))
> 
> ## [v0.8.1](https://github.com/shelljs/shelljs/tree/v0.8.1) (2018-01-20)
> [Full Changelog](shelljs/shelljs@v0.8.0...v0.8.1)
> 
> **Closed issues:**
> 
> - Exec failing with internal error when piping large output [\[#818](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/818)
> - using sed to replace just the first occurrence of a string [\[#813](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/813)
> 
> **Merged pull requests:**
> 
> - Revert "refactor\(exec\): remove paramsFile \(\#807\)" [\[#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819)](https://github-redirect.dependabot.com/shelljs/shelljs/pull/819) ([nfischer](https://github.com/nfischer))
> 
> ## [v0.8.0](https://github.com/shelljs/shelljs/tree/v0.8.0) (2018-01-12)
> [Full Changelog](shelljs/shelljs@v0.7.8...v0.8.0)
> 
> **Closed issues:**
> 
> - Snyk vulnerability DB reporting command injection vulnerability in ShellJS [\[#810](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/810)
> - chore: upgrade nyc [\[#803](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/803)
> - Update CI to use Node v9 [\[#799](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/799)
> - Link to FAQ wiki section in our issue template [\[#787](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/787)
> - Is it possible to get a js library\(file\) for ShellJS [\[#776](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/776)
> - 48, [\[#774](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/774)
> - 47 [\[#773](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/773)
> - Exec function calls JSON.stringify on command [\[#772](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/772)
> - getting different result from terminal and with shelljs  [\[#769](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/769)
> - test\(\) does not support -w and -x options [\[#768](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/768)
> - Snyk "high severity" issue [\[#766](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)](https://github-redirect.dependabot.com/shelljs/shelljs/issues/766)
></table> ... (truncated)
</details>
<details>
<summary>Commits</summary>

- [`3b266d0`](shelljs/shelljs@3b266d0) 0.8.2
- [`3ce805e`](shelljs/shelljs@3ce805e) docs(changelog): updated by Nate Fischer [ci skip]
- [`d7b6a1f`](shelljs/shelljs@d7b6a1f) Workaround codecov bug of miscalculation of coverage ([#795](https://github-redirect.dependabot.com/shelljs/shelljs/issues/795)) ([#838](https://github-redirect.dependabot.com/shelljs/shelljs/issues/838))
- [`9035b27`](shelljs/shelljs@9035b27) docs: fix typos and adjust markdown formatting ([#825](https://github-redirect.dependabot.com/shelljs/shelljs/issues/825))
- [`9077f41`](shelljs/shelljs@9077f41) Remove separate "internal error" from exec ([#802](https://github-redirect.dependabot.com/shelljs/shelljs/issues/802))
- [`62ce4ba`](shelljs/shelljs@62ce4ba) chore(lint): don't allow excess trailing newlines ([#816](https://github-redirect.dependabot.com/shelljs/shelljs/issues/816))
- [`2271080`](shelljs/shelljs@2271080) chore: update contributing guidelines ([#817](https://github-redirect.dependabot.com/shelljs/shelljs/issues/817))
- [`bbcfa5c`](shelljs/shelljs@bbcfa5c) docs(changelog): updated by Nate Fischer [ci skip]
- [`7058d63`](shelljs/shelljs@7058d63) 0.8.1
- [`cb9cf27`](shelljs/shelljs@cb9cf27) Revert "refactor(exec): remove paramsFile ([#807](https://github-redirect.dependabot.com/shelljs/shelljs/issues/807))" ([#819](https://github-redirect.dependabot.com/shelljs/shelljs/issues/819))
- Additional commits viewable in [compare view](shelljs/shelljs@v0.7.8...v0.8.2)
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=shelljs&package-manager=npm_and_yarn&previous-version=0.7.8&new-version=0.8.2)](https://dependabot.com/compatibility-score.html?dependency-name=shelljs&package-manager=npm_and_yarn&previous-version=0.7.8&new-version=0.8.2)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

**Note:** This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking `Bump now` in your [Dependabot dashboard](https://app.dependabot.com).

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
@Pomax
Copy link
Contributor

Pomax commented Jan 28, 2019

fixed a while back.

@Pomax Pomax closed this as completed Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants