2

パースサーバーありhttps://github.com/ParsePlatform/parse-server

これは parse.com サービスのスタンドアロン バージョンです。

Debian 8.3 を新しくインストールしました。git から解析サーバーをダウンロードし、インストールを実行しましたが、サービスを開始できません。

私はこれをそのようにインストールしました:

git clone https://github.com/ParsePlatform/parse-server.git
npm install

コマンドの後にこれがあります

npm run start

出力:

You must provide an appId!
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "start"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! parse-server@2.1.2 start: `./bin/parse-server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the parse-server@2.1.2 start script './bin/parse-server'.
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 parse-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./bin/parse-server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs parse-server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls parse-server
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/parse/parse-server/bin/npm-debug.log

そしてこれはコマンドの後に

sudo npm start -- --appId foo --masterKey bar --serverURL http://localhost:1337/parse

出力:

> parse-server@2.1.2 start /root/parse/parse-server
> ./bin/parse-server "--appId" "foo" "--masterKey" "bar" "--serverURL" "http://localhost:1337/parse"


/root/parse/parse-server/lib/requiredParameter.js:8
  throw errorMessage;
  ^
You must provide an appId!

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "--" "--appId" "foo" "--masterKey" "bar" "--serverURL" "http://localhost:1337/parse"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! parse-server@2.1.2 start: `./bin/parse-server "--appId" "foo" "--masterKey" "bar" "--serverURL" "http://localhost:1337/parse"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the parse-server@2.1.2 start script './bin/parse-server "--appId" "foo" "--masterKey" "bar" "--serverURL" "http://localhost:1337/parse"'.
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 parse-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./bin/parse-server "--appId" "foo" "--masterKey" "bar" "--serverURL" "http://localhost:1337/parse"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs parse-server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls parse-server
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/parse/parse-server/bin/npm-debug.log

最後のコマンドで appId を明示的に指定しましたが、出力では appId が指定されていません。

どこで私は間違えましたか?

更新 26.02.2016:

そのコマンドでインストールが行われた

root@parseserver:~/parse/parse-server# npm install --unsafe-perm

出力は次のとおりです。

> parse-server@2.1.3 prepublish /root/parse/parse-server
> npm run build


> parse-server@2.1.3 build /root/parse/parse-server
> babel src/ -d lib/

src/APNS.js -> lib/APNS.js
src/Adapters/AdapterLoader.js -> lib/Adapters/AdapterLoader.js
src/Adapters/Files/FilesAdapter.js -> lib/Adapters/Files/FilesAdapter.js
src/Adapters/Files/GridStoreAdapter.js -> lib/Adapters/Files/GridStoreAdapter.js
src/Adapters/Files/S3Adapter.js -> lib/Adapters/Files/S3Adapter.js
src/Adapters/Logger/FileLoggerAdapter.js -> lib/Adapters/Logger/FileLoggerAdapter.js
src/Adapters/Logger/LoggerAdapter.js -> lib/Adapters/Logger/LoggerAdapter.js
src/Adapters/Push/OneSignalPushAdapter.js -> lib/Adapters/Push/OneSignalPushAdapter.js
src/Adapters/Push/ParsePushAdapter.js -> lib/Adapters/Push/ParsePushAdapter.js
src/Adapters/Push/PushAdapter.js -> lib/Adapters/Push/PushAdapter.js
src/Adapters/Push/PushAdapterUtils.js -> lib/Adapters/Push/PushAdapterUtils.js
src/Auth.js -> lib/Auth.js
src/Config.js -> lib/Config.js
src/Controllers/AdaptableController.js -> lib/Controllers/AdaptableController.js
src/Controllers/FilesController.js -> lib/Controllers/FilesController.js
src/Controllers/LoggerController.js -> lib/Controllers/LoggerController.js
src/Controllers/PushController.js -> lib/Controllers/PushController.js
src/DatabaseAdapter.js -> lib/DatabaseAdapter.js
src/ExportAdapter.js -> lib/ExportAdapter.js
src/GCM.js -> lib/GCM.js
src/PromiseRouter.js -> lib/PromiseRouter.js
src/RestQuery.js -> lib/RestQuery.js
src/RestWrite.js -> lib/RestWrite.js
src/Routers/AnalyticsRouter.js -> lib/Routers/AnalyticsRouter.js
src/Routers/ClassesRouter.js -> lib/Routers/ClassesRouter.js
src/Routers/FilesRouter.js -> lib/Routers/FilesRouter.js
src/Routers/FunctionsRouter.js -> lib/Routers/FunctionsRouter.js
src/Routers/IAPValidationRouter.js -> lib/Routers/IAPValidationRouter.js
src/Routers/InstallationsRouter.js -> lib/Routers/InstallationsRouter.js
src/Routers/LogsRouter.js -> lib/Routers/LogsRouter.js
src/Routers/PushRouter.js -> lib/Routers/PushRouter.js
src/Routers/RolesRouter.js -> lib/Routers/RolesRouter.js
src/Routers/SchemasRouter.js -> lib/Routers/SchemasRouter.js
src/Routers/SessionsRouter.js -> lib/Routers/SessionsRouter.js
src/Routers/UsersRouter.js -> lib/Routers/UsersRouter.js
src/Schema.js -> lib/Schema.js
src/batch.js -> lib/batch.js
src/cache.js -> lib/cache.js
src/cli/cli-definitions.js -> lib/cli/cli-definitions.js
src/cli/parse-server.js -> lib/cli/parse-server.js
src/cli/utils/commander.js -> lib/cli/utils/commander.js
src/cryptoUtils.js -> lib/cryptoUtils.js
src/global_config.js -> lib/global_config.js
src/httpRequest.js -> lib/httpRequest.js
src/index.js -> lib/index.js
src/middlewares.js -> lib/middlewares.js
src/oauth/OAuth1Client.js -> lib/oauth/OAuth1Client.js
src/oauth/facebook.js -> lib/oauth/facebook.js
src/oauth/github.js -> lib/oauth/github.js
src/oauth/google.js -> lib/oauth/google.js
src/oauth/index.js -> lib/oauth/index.js
src/oauth/instagram.js -> lib/oauth/instagram.js
src/oauth/linkedin.js -> lib/oauth/linkedin.js
src/oauth/meetup.js -> lib/oauth/meetup.js
src/oauth/twitter.js -> lib/oauth/twitter.js
src/password.js -> lib/password.js
src/requiredParameter.js -> lib/requiredParameter.js
src/rest.js -> lib/rest.js
src/testing-routes.js -> lib/testing-routes.js
src/transform.js -> lib/transform.js
src/triggers.js -> lib/triggers.js
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8
npm WARN mongodb-core@1.2.32 requires a peer of kerberos@~0.0 but none was installed.
4

2 に答える 2

0

index.js ファイルで appId と masterKey を提供する必要があります。

すでにそれを行っているかどうかを確認してください

于 2016-02-25T17:28:05.990 に答える