node.js - Cant run node js as root -


i have node js running on raspberry pi. when run $ node -v gives me version number when run $ sudo node -v returns node: not found

i need run root, ideas?

when run root, path different. if modify path root, or specify full path node.js executable, work.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -