Jump to content

Recommended Posts

Posted
Username: teesofficial, Server: Johnny, Main domain: t-a-l.tscoin-collect.helioho.st

teesofficial
Today at 10:20 PM
Can someone check on this error with npm "start script" or "run" script?
The goal is to configure the "parse server" with "postgre sql" database.
Following are the error messages and the "index.js" file: # npm npm
--prefix t-a-l.tscoin-collect.helioho.st/parse-server-example
Process exited with non-zero exit code '1'
Unknown command: "npm"

To see a list of supported npm commands, run:
npm help


# npm --prefix t-a-l.tscoin-collect.helioho.st/parse-server-example
Process exited with non-zero exit code '1'
npm

Usage:

npm install install all the dependencies in your project
npm install add the dependency to your project
npm test run this project's tests
npm run run the script named
npm -h quick help on
npm -l display usage info for all commands
npm help search for help on
npm help npm more involved overview

All commands:

access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, sbom,
search, set, shrinkwrap, star, stars, start, stop, team,
test, token, uninstall, unpublish, unstar, update, version,
view, whoami

Specify configs in the ini-formatted file:
/home/t-a-l.tscoin-collect.helioho.st/.npmrc
or on the command line via: npm --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@10.8.2 /opt/plesk/node/18/lib/node_modules/npm


# npm npm --prefix /home/
t-a-l.tscoin-collect.helioho.st/parse-server-example
Process exited with non-zero exit code '1'
Unknown command: "npm"

To see a list of supported npm commands, run:
npm help


# npm --prefix /home/t-a-l.tscoin-collect.helioho.st/parse-server-example
Process exited with non-zero exit code '1'
npm

Usage:

npm install install all the dependencies in your project
npm install add the dependency to your project
npm test run this project's tests
npm run run the script named
npm -h quick help on
npm -l display usage info for all commands
npm help search for help on
npm help npm more involved overview

All commands:

access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, sbom,
search, set, shrinkwrap, star, stars, start, stop, team,
test, token, uninstall, unpublish, unstar, update, version,
view, whoami

Specify configs in the ini-formatted file:
/home/t-a-l.tscoin-collect.helioho.st/.npmrc
or on the command line via: npm --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@10.8.2 /opt/plesk/node/18/lib/node_modules/npm


# npm run parse-server-example
Process exited with non-zero exit code '1'

npm error Missing script: "parse-server-example"
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: /home/
t-a-l.tscoin-collect.helioho.st/.npm/_logs/2025-01-01T02_49_58_803Z-debug-0.log

# npm node index.js
Process exited with non-zero exit code '1'
Unknown command: "node"

To see a list of supported npm commands, run:
npm help


# npm start node index.js
Process exited with non-zero exit code '1'

npm error Missing script: "start"
npm error
npm error Did you mean one of these?
npm error npm star # Mark your favorite packages
npm error npm stars # View packages marked as favorites
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: /home/
t-a-l.tscoin-collect.helioho.st/.npm/_logs/2025-01-01T03_09_38_254Z-debug-0.log

# npm run node index.js
Process exited with non-zero exit code '1'

npm error Missing script: "node"
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: /home/
t-a-l.tscoin-collect.helioho.st/.npm/_logs/2025-01-01T03_13_04_818Z-debug-0.log








// Example express application adding the parse-server module to expose
Parse
// compatible API routes.

import express from 'express';
import { ParseServer } from 'parse-server-example';
import path from 'path';
const dirname = path.resolve();
import http from '
https://johnny.heliohost.org:8443/t-a-l.tscoin-collect.helioho.st';

export const config = {
databaseURI:
postgresql://username:password@localhost:5432/databasename',
cloud: process.env.CLOUD_CODE_MAIN || dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'TALT_Cha-Ching_SwitchApp',
masterKey: process.env.MASTER_KEY || 'parse-server-key9', //Add your
master key here. Keep it secret!
serverURL: process.env.SERVER_URL || '
https://t-a-l.tscoin-collect.helioho.st/parse-server-example', // Don't
forget to change to https if needed
liveQuery: {
classNames: ['Posts', 'Comments'], // List of classes to support for
query subscriptions
},
};
// Client-keys like the javascript key or the .NET key are not necessary
with parse-server
// If you wish you require them, you can set them as options in the
initialization above:
// javascriptKey, restAPIKey, dotNetKey, clientKey

export const app = express();

app.set('trust proxy', true);

// Serve static assets from the /public folder
app.use('/public', express.static(path.join(dirname, '/public')));

// Serve the Parse API on the /parse URL prefix
if (!process.env.TESTING) {
const mountPath = process.env.PARSE_MOUNT || '/parse';
const server = new ParseServer(config);
await server.start();
app.use(mountPath, server.app);
}

// Parse Server plays nicely with the rest of your web routes
app.get('/', function (req, res) {
res.status(200).send('I dream of being a website. Please star the
parse-server repo on GitHub!');
});

// There will be a test page available on the /test path of your server url
// Remove this before launching your app
app.get('/test', function (req, res) {
res.sendFile(path.join(dirname, '/public/test.html'));
});

if (!process.env.TESTING) {
const port = process.env.PORT || 1337;
const httpServer = http.createServer(app);
httpServer.listen(port, function () {
console.log('parse-server-e9 running on port ' + port + '.');
});
// This will enable the Live Query real-time server
await ParseServer.createLiveQueryServer(httpServer);
}

Posted
Had used nmp with node.js to run commands.

On Wed, Jan 1, 2025, 12:07 AM HelioHost Support
wrote:

> How are you running these commands?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=63235
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted
Typo: npm

On Wed, Jan 1, 2025, 1:32 PM Tee Thompson wrote:

> Had used nmp with node.js to run commands.
>
> On Wed, Jan 1, 2025, 12:07 AM HelioHost Support
> wrote:
>
>> How are you running these commands?
>>
>> You may view the status of your ticket by visiting:
>>
>> https://helionet.org/index/index.php?showtopic=63235
>>
>> Thank you,
>> HelioHost support
>> https://heliohost.org/
>> https://helionet.org/
>>
>>

Posted
Might have figured it, just noticed that the npm installation node_modules
also has an index.js file and the one populated in the original
"parse-server" file folder was the wrong one maybe.

On Wed, Jan 1, 2025, 2:04 PM Tee Thompson wrote:

> Typo: npm
>
> On Wed, Jan 1, 2025, 1:32 PM Tee Thompson wrote:
>
>> Had used nmp with node.js to run commands.
>>
>> On Wed, Jan 1, 2025, 12:07 AM HelioHost Support
>> wrote:
>>
>>> How are you running these commands?
>>>
>>> You may view the status of your ticket by visiting:
>>>
>>> https://helionet.org/index/index.php?showtopic=63235
>>>
>>> Thank you,
>>> HelioHost support
>>> https://heliohost.org/
>>> https://helionet.org/
>>>
>>>

Posted
Is the parse app installed correctly? The start or run command shows errors.

On Tue, Dec 31, 2024, 10:58 PM HelioHost Support
wrote:

> Your message (Support Ticket) has been assigned the tracking ID
> [HH#221290]. One of our volunteer community members will reply to your
> email as soon as possible.
>
> Please include the string [HH#221290] in the subject of any future email
> regarding this case. You may do that by simply replying to this message.
>
> Please be aware that our system rejects binary attachments. If you are
> submitting a screenshot or attachment please post a link to the file
> instead of attaching it to the email.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=63235
>
> Thank you,
> HelioHost Support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

You still haven't answered my question:

How are you running these commands?

Depending on how you're running the commands it may explain why a command doesn't work for you.

  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...