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

On ubuntu 14, python build/all.py fails with error for npm and node.js version mismatch #1175

Closed
jmcsagdc opened this issue Dec 8, 2017 · 2 comments
Assignees
Labels
status: archived Archived and locked; will not be updated type: docs Improvements or fixes to documentation
Milestone

Comments

@jmcsagdc
Copy link

jmcsagdc commented Dec 8, 2017

These are the install steps from the page:
(1)
sudo apt-get update
sudo apt-get install git python2.7 default-jre-headless npm
(2)
sudo npm install -g n
sudo n stable
sudo npm install -g npm
(3)
git clone https://github.com/google/shaka-player.git
cd shaka-player
(4)
python build/all.py

EXPECTED:
dist bundles to be created

ACTUAL:
Fails with the following text:
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
npm WARN npm You can find the latest version at https://nodejs.org/
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.
/usr/local/bin/node[31143]: ../src/node_zlib.cc:437:static void node::{anonymous}::ZCtx::Init(const v8::FunctionCallbackInfov8::Value&): Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
1: node::Abort() [npm]
2: node::Assert(char const* const () [4]) [npm]
3: 0x1255aff [npm]
4: v8::internal::FunctionCallbackArguments::Call(void (
)(v8::FunctionCallbackInfov8::Value const&)) [npm]
5: 0xb77f9c [npm]
6: v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [npm]
7: 0x38cc29e842fd
Traceback (most recent call last):
File "build/all.py", line 86, in
shakaBuildHelpers.run_main(main)
File "/home/myusername/shaka-player/build/shakaBuildHelpers.py", line 292, in run_main
sys.exit(main(sys.argv[1:]))
File "build/all.py", line 55, in main
code = check.main([])
File "/home/myusername/shaka-player/build/check.py", line 215, in main
if not step():
File "/home/myusername/shaka-player/build/check.py", line 69, in check_html_lint
if not shakaBuildHelpers.update_node_modules():
File "/home/myusername/shaka-player/build/shakaBuildHelpers.py", line 270, in update_node_modules
execute_get_output([cmd, 'install'])
File "/home/myusername/shaka-player/build/shakaBuildHelpers.py", line 143, in execute_get_output
raise subprocess.CalledProcessError(obj.returncode, args[0], stdout)
subprocess.CalledProcessError: Command 'npm' returned non-zero exit status -6

@joeyparrish
Copy link
Member

It looks like sudo n stable now installs nodejs v9, but you had npm v5.5.1, which is incompatible with nodejs v9.

We'll see if we can write more universally-usable instructions for this.

@joeyparrish joeyparrish added the type: docs Improvements or fixes to documentation label Dec 8, 2017
@joeyparrish joeyparrish added this to the v2.4.0 milestone Dec 8, 2017
@joeyparrish joeyparrish self-assigned this Feb 22, 2018
joeyparrish added a commit that referenced this issue Mar 1, 2018
This adds a new script which should simplify the process of installing
prereqs on Debian and Ubuntu-based Linux distributions.  This also
updates the required versions of NodeJS and Git.

Closes #1175

Change-Id: If298cc46650bfd0ebe726c8fa3184dd0d063bfaf
@joeyparrish
Copy link
Member

Cherry-picked for v2.3.3.

@shaka-project shaka-project locked and limited conversation to collaborators Apr 27, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated type: docs Improvements or fixes to documentation
Projects
None yet
Development

No branches or pull requests

3 participants