0
Я новичок в узле js. начал настраивать проект узла js.npm команда запуска дает ошибку: http-server: команда не найдена, код: ELIFECYCLE
Ошибка при использовании команды запуска npm.
NPM начать
> [email protected] start /usr/local/UserProfile/TitanUI
> http-server -p 8080
sh: http-server: command not found
npm ERR! Linux 2.6.32-504.8.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: `http-server -p 8080`
npm ERR! spawn ENOENT
npm ERR! Failed at the [email protected] start script 'http-server -p 8080'.
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 sigma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! http-server -p 8080
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sigma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sigma
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/UserProfile/TitanUI/npm-debug.log
Эти версии CentOS, НПМ и узлов JS.
CentOS: 6,6
НПМ: 3.10
nodejs: 6.7.0 Я предполагаю, что у меня есть последние версии only..Please мне помочь, если кто знает об этом.
Не могли бы вы разместить свой файл package.json? –
Привет, проблема решена. Спасибо .. Удаление узлов модулей и, npm install решили проблему ... – Ahi
, но не должно ли папка node_modules иметь исполняемый файл? –