0
新しいノードjsです。ノードjsプロジェクトのセットアップを開始しました。npm startコマンドでエラーが発生しました。http-server:コマンドが見つかりません。コード:ELIFECYCLE
npm startコマンドを使用したときにエラーが発生しました。
NPMこれらはCentOSの、NPMノードJSのバージョンである
> [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 6.6
NPM:3.10
nodejs:私はいずれかがこのことについて知っているなら、私を助けてonly..Please最新バージョンを持っていると思い6.7.0 。
package.jsonファイルを投稿してください。 –
こんにちは問題は解決されました。ありがとう..ノードモジュールを削除して、npmは問題を解決しました... – Ahi
node_modulesフォルダには実行可能ファイルがありますか? –