Я запускаю Ubuntu 18.04. Я установил nodejs, но я думаю, что, возможно, испортил где-нибудь по пути. Я пытаюсь запустить ионное приложение с ionic serve --devappcd
. Затем я получаю это сообщение об ошибке:
ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[INFO] Looks like @ionic/app-scripts isn't installed in this project.
This package is required for this command to work properly.
The package provides a CLI utility, but the ionic-app-scripts binary was not found in your PATH.
? Install @ionic/app-scripts? Yes
npm i -D -E @ionic/app-scripts
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/4f/4a'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/a5/ef'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/4f/c4'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/6e/d0'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/1e/e1'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/74/2e'
Unhandled rejection Error: EACCES: permission denied, mkdir '/home/mick/.npm/_cacache/index-v5/68/37'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mick/.npm/_logs/2019-04-06T12_04_23_552Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i -D -E @ionic/app-scripts exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Действительно ли возможно удалить nodejs и запуститься снова?
Используйте эту команду:
sudo npm cache clean --force --unsafe-perm
Затем после того повторения процесс.
У Вас нет доступа верных полномочий на глобальных пакетах.
Узел удаления js полностью
Узел установки (я предпочитаю снимок),
sudo привязывают узел установки - channel=10/stable - классик
Следуйте этому руководству, чтобы позволить Вашим глобальным пакетам корректное разрешение. Шаги здесь
cd
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
nano .profile
# add at the end of .profile file
export PATH=~/.npm-global/bin:$PATH
# save, then reload by running.
source ~/.profile
теперь необходимо установить ионный cli (не используйте sudo), и попытайтесь выполнить проект.