npm ERR! missing script: start

369 views
Skip to first unread message

Joseph

unread,
May 24, 2017, 2:47:40 PM5/24/17
to Eve talk
Hi.

Tried running Eve on my CentOS 6.9 VPS. I followed instructions "Installing Eve on Linux" here:

Because I was logged in as root, I did the install with flag --unsafe-perm
Install finished without error.

But when I tried starting up Eve, I get an error message. Here's what happens

[root@vps36412 Eve-master]# npm start

npm ERR! Linux 2.6.32-042stab120.11

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"

npm ERR! node v6.10.3

npm ERR! npm  v3.10.10


npm ERR! missing script: start


Any ideas?

Thanks.

Joseph

unread,
May 24, 2017, 6:41:51 PM5/24/17
to Eve talk
Got the same results on my MacBook

npm ERR! Darwin 16.6.0

Josh Cole

unread,
May 24, 2017, 7:46:20 PM5/24/17
to Eve talk
Hey Joseph,

Sorry for the confusion. The 0.2 install guide isn't quite right for 0.3. We've chosen to make `witheve/eve` be a repository purely for the language compiler and runtime, so the getting started experience is now in `witheve/eve-starter`. We're working on getting the 0.3 docs out the door as we speak. You can browse the work-in-progress install guide (and other 0.3 docs) here: http://docs-next.witheve.com/install/

Joseph

unread,
May 25, 2017, 5:24:57 PM5/25/17
to Eve talk
I'm having 2 problems with this as well. On My CentOS VPS I get an error:


Problem 1:


The command I use is

git clone g...@github.com:witheve/eve-starter.git


The result I get is


Permission denied (publickey).

fatal: The remote end hung up unexpectedly


Using the HTTPS option instead, the cloning appears to succeed.
However, when I do npm install I get a warning
npm WARN lifecycle witheve...@0.1.1~postinstall: cannot run in wd %s %s (wd=%s) witheve...@0.1.1 tsc /root/tmp/tmp/eve-starter
witheve...@0.1.1 /root/tmp/tmp/eve-starter

and when I then try to do 
npm start
the result is


> witheve...@0.1.1 start /root/tmp/tmp/eve-starter
> node build/src/cli.js

module.js:471
    throw err;
    ^
....
Tell the author that this fails on your system:
npm ERR!     node build/src/cli.js

In fact there is no directory called build on my system. But there is a directory called src that contains a file called cli.ts 

Any ideas?

Thanks.


Josh Cole

unread,
May 30, 2017, 8:21:51 PM5/30/17
to Eve talk
Hey Joseph,

That first issue is because you're not using an SSH key for authentication with GitHub. I shouldn't have made the assumption that you and others would, so we'll update those github links to their HTTPS equivalents.

The latter issue is happening likely because you are running as root. NPM will refuse to run module scripts when run as the root user, since it'd be tantamount to handing your rooted machine to the package's maintainers. I (like NPM) strongly encourage you not to run any Eve code as root. Everything we provide is still alpha quality and, with root powers, may well wipe your hard drive.

If you find that that isn't the issue, or the issue persists even when running as a regular user, please let me know and I'll see what I can do to help. Also note that you'll want to `git pull; npm install` prior to your next attempt to run the the starter to update to the latest prerelease.
Reply all
Reply to author
Forward
0 new messages