Comments (7)
We (Shaka Player) have instructions in our docs on how to upgrade node and npm. I recommend you try this:
# Install an upgrade utility for node
sudo npm install -g n
# Upgrade node
sudo n stable
# Upgrade npm
sudo npm install -g npm
from sample-media-pwa.
thank you, i did upgrade node and npm.. after upgrading to latest version which is 8 *.. which i enter which node and node -v.. it still points to node version 4.
from sample-media-pwa.
What do you get in the output of these commands?
which node
node -v
which nodejs
nodejs -v
which npm
npm --version
ls -l /usr/bin/node*
ls -l /usr/local/bin/node*
ls -l /etc/alternatives/node*
ls -l /usr/lib/node_modules/
ls -l /usr/local/lib/node_modules/
from sample-media-pwa.
user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ which node /usr/local/bin/node user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ node -v v8.1.2 user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ which nodejs /usr/bin/nodejs user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ which npm /usr/local/bin/npm user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ npm --version 5.0.3 user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /usr/bin/node* lrwxrwxrwx 1 root root 33 Dec 8 2015 /usr/bin/node-gyp -> ../share/node-gyp/bin/node-gyp.js -rwxr-xr-x 1 root root 11187096 May 21 2016 /usr/bin/nodejs user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /usr/local/bin/node* -rwxr-xr-x 1 root root 36186806 Jun 20 19:16 /usr/local/bin/node user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /etc/alternatives/node* ls: cannot access '/etc/alternatives/node*': No such file or directory user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /etc/alternatives/node* ls: cannot access '/etc/alternatives/node*': No such file or directory user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /usr/lib/node_modules/ ls: cannot access '/usr/lib/node_modules/': No such file or directory user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks$ ls -l /usr/local/lib/node_modules/ total 16 drwxr-xr-x 0 user user 4096 Jun 22 10:32 bower drwxr-xr-x 0 user user 4096 Jun 21 16:21 grunt-cli drwxr-xr-x 0 nobody user 4096 Jun 20 19:09 n drwxr-xr-x 0 root root 4096 Jun 20 19:17 npm
from sample-media-pwa.
user@DESKTOP-0DEBRRJ:/mnt/c/Users/Logesh/Desktop/NodeJSWorks/shaka-player$ sudo python build/all.py [sudo] password for user: [INFO] Generating Closure dependencies... INFO] Running Closure linter... 187 files checked, no errors found. npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone -q git://github.com/yaniswang/HTMLHint.git /home/user/.npm/_cacache/tmp/git-clone-feefb2b3 npm ERR! /home/user/.npm/_cacache/tmp/git-clone-feefb2b3/.git: Permission denied npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2017-06-23T05_59_33_728Z-debug.log Traceback (most recent call last): File "build/all.py", line 44, in <module> shakaBuildHelpers.run_main(main) File "/mnt/c/Users/Logesh/Desktop/NodeJSWorks/shaka-player/build/shakaBuildHelpers.py", line 292, in run_main sys.exit(main(sys.argv[1:])) File "build/all.py", line 30, in main code = check.main([]) File "/mnt/c/Users/Logesh/Desktop/NodeJSWorks/shaka-player/build/check.py", line 156, in main elif not check_html_lint(): File "/mnt/c/Users/Logesh/Desktop/NodeJSWorks/shaka-player/build/check.py", line 69, in check_html_lint if not shakaBuildHelpers.update_node_modules(): File "/mnt/c/Users/Logesh/Desktop/NodeJSWorks/shaka-player/build/shakaBuildHelpers.py", line 270, in update_node_modules execute_get_output([cmd, 'install']) File "/mnt/c/Users/Logesh/Desktop/NodeJSWorks/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 1
from sample-media-pwa.
Wow those are hard to read.
You would be better off doing triple ` (backtick)
```sh
stuff
```
from sample-media-pwa.
@logeshhy, you seem to have two versions of node installed: /usr/local/bin/node
and /usr/bin/nodejs
. This seems to be the root of your problem.
Try this (untested):
sudo mv /usr/local/bin/node /root/backup-node-v8
sudo npm install -g n
sudo n stable
sudo mv /usr/bin/nodejs /root/backup-nodejs-v4
After this, you should only have one copy of node, and it should be up-to-date. I hope.
from sample-media-pwa.
Related Issues (20)
- Fix horizontal scrolling on desktop
- Error when running npm run dev HOT 5
- Make primary video smaller on desktop
- Move description to left of poster (on desktop only)
- Set missing video robustness HOT 1
- Set/store license twice
- Offline playback doesn't work HOT 1
- I want to force a session-restore event.
- Improve error logging HOT 2
- biograf does not handle RMKSA rejection HOT 1
- Docker build command fails to find image stored on GCS
- npm run dev doesn't work well HOT 5
- how to list my media on app HOT 1
- Demo app available?
- My PWA isn't working offline when launched from homescreen HOT 1
- npm run dev erors HOT 3
- update parallelshell package
- This is not defined HOT 1
- No video is loaded on local environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sample-media-pwa.