<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[npm start does not work on vps (sovled)]]></title><description><![CDATA[<p>I checked the haxe official examples. While npm install and npm start worked fine locally. But when I tried to put them on my hosting's Vps it gave me this error:</p>
<p>[root@server colyseus-official-examples]# npm start</p>
<blockquote>
<p>colyseus-examples@1.0.1 start /var/www/html/001-codex/colyseus-official-examples<br />
ts-node-dev --respawn --transpile-only src/index.ts</p>
</blockquote>
<p>sh: ts-node-dev: command not found<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! syscall spawn<br />
npm ERR! file sh<br />
npm ERR! errno ENOENT<br />
npm ERR! colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
npm ERR! spawn ENOENT<br />
npm ERR!<br />
npm ERR! Failed at the colyseus-examples@1.0.1 start script.<br />
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
<p>npm ERR! A complete log of this run can be found in:<br />
npm ERR!     /root/.npm/_logs/2021-05-15T09_47_00_680Z-debug.log</p>
<hr />
<p><strong>Here is the content of log file:</strong><br />
0 info it worked if it ends with ok<br />
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]<br />
2 info using npm@6.12.0<br />
3 info using node@v12.13.0<br />
4 verbose run-script [ 'prestart', 'start', 'poststart' ]<br />
5 info lifecycle colyseus-examples@1.0.1~prestart: colyseus-examples@1.0.1<br />
6 info lifecycle colyseus-examples@1.0.1~start: colyseus-examples@1.0.1<br />
7 verbose lifecycle colyseus-examples@1.0.1~start: unsafe-perm in lifecycle true<br />
8 verbose lifecycle colyseus-examples@1.0.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/html/001-codex/colyseus-official-examples/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin<br />
9 verbose lifecycle colyseus-examples@1.0.1~start: CWD: /var/www/html/001-codex/colyseus-official-examples<br />
10 silly lifecycle colyseus-examples@1.0.1~start: Args: [ '-c', 'ts-node-dev --respawn --transpile-only src/index.ts' ]<br />
11 info lifecycle colyseus-examples@1.0.1~start: Failed to exec start script<br />
12 verbose stack Error: colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
12 verbose stack spawn ENOENT<br />
12 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)<br />
12 verbose stack     at ChildProcess.emit (events.js:210:5)<br />
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)<br />
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)<br />
13 verbose pkgid colyseus-examples@1.0.1<br />
14 verbose cwd /var/www/html/001-codex/colyseus-official-examples<br />
15 verbose Linux 2.6.32-042stab120.19<br />
16 verbose argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;start&quot;<br />
17 verbose node v12.13.0<br />
18 verbose npm  v6.12.0<br />
19 error code ELIFECYCLE<br />
20 error syscall spawn<br />
21 error file sh<br />
22 error errno ENOENT<br />
23 error colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
23 error spawn ENOENT<br />
24 error Failed at the colyseus-examples@1.0.1 start script.<br />
24 error This is probably not a problem with npm. There is likely additional logging output above.<br />
25 verbose exit [ 1, true ]</p>
]]></description><link>http://discuss.colyseus.io/topic/468/npm-start-does-not-work-on-vps-sovled</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 13:23:51 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/468.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 May 2021 09:52:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to npm start does not work on vps (sovled) on Fri, 15 Oct 2021 09:27:49 GMT]]></title><description><![CDATA[<p>I checked the haxe official examples. While npm install and npm start worked fine locally. But when I tried to put them on my hosting's Vps it gave me this error:</p>
<p>[root@server colyseus-official-examples]# npm start</p>
<blockquote>
<p>colyseus-examples@1.0.1 start /var/www/html/001-codex/colyseus-official-examples<br />
ts-node-dev --respawn --transpile-only src/index.ts</p>
</blockquote>
<p>sh: ts-node-dev: command not found<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! syscall spawn<br />
npm ERR! file sh<br />
npm ERR! errno ENOENT<br />
npm ERR! colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
npm ERR! spawn ENOENT<br />
npm ERR!<br />
npm ERR! Failed at the colyseus-examples@1.0.1 start script.<br />
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
<p>npm ERR! A complete log of this run can be found in:<br />
npm ERR!     /root/.npm/_logs/2021-05-15T09_47_00_680Z-debug.log</p>
<hr />
<p><strong>Here is the content of log file:</strong><br />
0 info it worked if it ends with ok<br />
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]<br />
2 info using npm@6.12.0<br />
3 info using node@v12.13.0<br />
4 verbose run-script [ 'prestart', 'start', 'poststart' ]<br />
5 info lifecycle colyseus-examples@1.0.1~prestart: colyseus-examples@1.0.1<br />
6 info lifecycle colyseus-examples@1.0.1~start: colyseus-examples@1.0.1<br />
7 verbose lifecycle colyseus-examples@1.0.1~start: unsafe-perm in lifecycle true<br />
8 verbose lifecycle colyseus-examples@1.0.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/html/001-codex/colyseus-official-examples/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin<br />
9 verbose lifecycle colyseus-examples@1.0.1~start: CWD: /var/www/html/001-codex/colyseus-official-examples<br />
10 silly lifecycle colyseus-examples@1.0.1~start: Args: [ '-c', 'ts-node-dev --respawn --transpile-only src/index.ts' ]<br />
11 info lifecycle colyseus-examples@1.0.1~start: Failed to exec start script<br />
12 verbose stack Error: colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
12 verbose stack spawn ENOENT<br />
12 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)<br />
12 verbose stack     at ChildProcess.emit (events.js:210:5)<br />
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)<br />
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)<br />
13 verbose pkgid colyseus-examples@1.0.1<br />
14 verbose cwd /var/www/html/001-codex/colyseus-official-examples<br />
15 verbose Linux 2.6.32-042stab120.19<br />
16 verbose argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;start&quot;<br />
17 verbose node v12.13.0<br />
18 verbose npm  v6.12.0<br />
19 error code ELIFECYCLE<br />
20 error syscall spawn<br />
21 error file sh<br />
22 error errno ENOENT<br />
23 error colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
23 error spawn ENOENT<br />
24 error Failed at the colyseus-examples@1.0.1 start script.<br />
24 error This is probably not a problem with npm. There is likely additional logging output above.<br />
25 verbose exit [ 1, true ]</p>
]]></description><link>http://discuss.colyseus.io/post/1511</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1511</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Fri, 15 Oct 2021 09:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to npm start does not work on vps (sovled) on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/799">@vishwasgagrani</a>!</p>
<p>By the error message, it seems that <code>devDependencies</code> listed under <code>package.json</code> were not installed during <code>npm install</code>:</p>
<pre><code>sh: ts-node-dev: command not found
</code></pre>
<p>If you use <code>npm install --only=dev</code> the development dependencies should be installed as well.</p>
<p>Let me know if that works for you!</p>
]]></description><link>http://discuss.colyseus.io/post/1512</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1512</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to npm start does not work on vps (sovled) on Invalid Date]]></title><description><![CDATA[<p>Tried using -only=dev , but does not seems to solve the problem. Same error again. It is asking for peer dependencies though.</p>
<p><strong>npm install --only=dev</strong><br />
<strong>npm WARN @colyseus/social@0.10.9 requires a peer of express-jwt@^5.3.1 but none is installed. You must install peer dependencies yourself.</strong><br />
npm WARN colyseus-examples@1.0.1 No repository field.</p>
<p>audited 346 packages in 4.513s<br />
found 1 low severity vulnerability<br />
[root@server colyseus-official-examples]# npm start</p>
<blockquote>
<p>colyseus-examples@1.0.1 start /var/www/html/001-codex/colyseus-official-examples<br />
ts-node-dev --respawn --transpile-only src/index.ts</p>
</blockquote>
<p>sh: ts-node-dev: command not found<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! syscall spawn<br />
npm ERR! file sh<br />
npm ERR! errno ENOENT<br />
npm ERR! colyseus-examples@1.0.1 start: <code>ts-node-dev --respawn --transpile-only src/index.ts</code><br />
npm ERR! spawn ENOENT<br />
npm ERR!<br />
npm ERR! Failed at the colyseus-examples@1.0.1 start script.<br />
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
<p>npm ERR! A complete log of this run can be found in:<br />
npm ERR!     /root/.npm/_logs/2021-05-17T09_12_57_957Z-debug.log</p>
<p>[root@server colyseus-official-examples]#</p>
]]></description><link>http://discuss.colyseus.io/post/1513</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1513</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to npm start does not work on vps (sovled) on Invalid Date]]></title><description><![CDATA[<p>Anyway I looked into package.json and saw this list:</p>
<p>&quot;@types/cors&quot;: &quot;^2.8.6&quot;,<br />
&quot;@types/express&quot;: &quot;^4.17.1&quot;,<br />
&quot;copyfiles&quot;: &quot;^2.4.1&quot;,<br />
&quot;rimraf&quot;: &quot;^2.7.1&quot;,<br />
&quot;ts-node&quot;: &quot;^8.1.0&quot;,<br />
&quot;ts-node-dev&quot;: &quot;^1.0.0-pre.63&quot;,<br />
&quot;typescript&quot;: &quot;^3.4.5&quot;</p>
<p>And after installing ts-node-dev using:<br />
<strong>npm i ts-node-dev --save-dev</strong></p>
<p>I see the server running at 2567<br />
<strong>Listening on ws://localhost:2567</strong></p>
<p>Got it working for now. Thanks.</p>
]]></description><link>http://discuss.colyseus.io/post/1514</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1514</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>