[resolvido][i-Diario App] - Erro ao tentar instalar e executar

Ao tentar instalar o App, é exibido o seguinte erro após o comando ‘sudo npm install’:

.
.
.

sh: 1: node: not found
ionic-hello-world@0.0.0 /home/secretaria/i-diario-app
├─┬ @angular/compiler-cli@5.2.10
│ ├─┬ tsickle@0.27.5
│ │ ├── source-map@0.6.1
│ │ └─┬ source-map-support@0.5.11
│ │ └── source-map@0.6.1
│ └── UNMET PEER DEPENDENCY typescript@>=2.4.2 <2.8
├── UNMET PEER DEPENDENCY rxjs@5.5.10
└── UNMET PEER DEPENDENCY typescript@2.9.2

.
.
.

npm ERR! Linux 4.15.0-46-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “install”
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! node-sass@4.9.0 install: node scripts/install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-sass@4.9.0 install script ‘node scripts/install.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! < path >/npm-debug.log

Alguém?

Diminuiu um erro, um problema era que o comando ‘node’ não é reconhecido no Ubuntu. No Ubuntu esse comando é o ‘nodejs’ devido a conflitos com outro pacote. Para resolver este problema basta executar o comando:

sudo ln -s < caminho do binário >/nodejs /usr/bin/node

Resolvido, realizei algumas operações que a instalação finalizou, porém o servidor ainda não executa, seguem alguns passos que me recordo:

sudo apt install gradle
sudo npm install -g rxjs@5.5.10
sudo npm install -g typescript@2.4.2

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

A instalação do ‘n’ deve ser antes da instalação do projeto
O sistema deu outro erro ao tentar executar o ionic que resolvi com os comandos abaixo:

sudo chmod 777 -R /< pasta do projeto >/
sudo npm install --unsafe-perm -g node-sass

O ionic executa, mas no navegador exibe o seguinte erro:

Runtime Error
Unexpected token < in JSON at position 0
Stack
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Response.Body.json (http://localhost:8100/build/vendor.js:59327:25)
at MapSubscriber.project (http://localhost:8100/build/main.js:3911:29)
at MapSubscriber._next (http://localhost:8100/build/vendor.js:51495:35)
at MapSubscriber.Subscriber.next (http://localhost:8100/build/vendor.js:20750:18)
at XMLHttpRequest.onLoad (http://localhost:8100/build/vendor.js:59827:38)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15660)
at Object.onInvokeTask (http://localhost:8100/build/vendor.js:5125:33)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15581)
at r.runTask (http://localhost:8100/build/polyfills.js:3:10834)

Basta clicar em close