Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed at start script #23

Closed
laaposto opened this issue Sep 1, 2017 · 5 comments
Closed

Failed at start script #23

laaposto opened this issue Sep 1, 2017 · 5 comments

Comments

@laaposto
Copy link

laaposto commented Sep 1, 2017

When I try npm start I get the following error:

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! pmviz@1.0.0 start: PORT=8081 node dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pmviz@1.0.0 start script 'PORT=8081 node dev-server.js'.
npm ERR! This is most likely a problem with the pmviz package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! PORT=8081 node dev-server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls pmviz
npm ERR! There is likely additional logging output above.

Any hint?

@Kohze
Copy link

Kohze commented Mar 12, 2018

same problem here

@anvaka
Copy link
Owner

anvaka commented Mar 12, 2018

@Kohze - do you have anything running on port 8081? Can you try:

PORT=9090 node dev-server

@Kohze
Copy link

Kohze commented Mar 12, 2018

Didn't solve it, the message it returns is that it does not know how to interpret "PORT" . Other than that the log is:

19 error node v7.9.1-nightly20170411675ece47b3
20 error npm v4.2.0
21 error code ELIFECYCLE
22 error errno 1
23 error pmviz@1.0.0 start: PORT=8081 node dev-server.js
23 error Exit status 1
24 error Failed at the pmviz@1.0.0 start script 'PORT=8081 node dev-server.js'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the pmviz package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error PORT=8081 node dev-server.js
24 error You can get information on how to open an issue for this project with:
24 error npm bugs pmviz
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls pmviz
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]

image

@Kohze
Copy link

Kohze commented Mar 12, 2018

Update: Solved the Issue. Apparently it was OS specific. For everyone using a windows machine the line

"start": "PORT=8081 node dev-server.js"

needs to be replaced with

"start": "set PORT=8081 && node dev-server.js"

@anvaka anvaka closed this as completed in b2b1048 Mar 13, 2018
@anvaka
Copy link
Owner

anvaka commented Mar 13, 2018

Thank you, @Kohze for diving deeper. I pushed a Windows starter script. Hopefully it would help for the Windows platform users. Please let me know if it doesn't work.

tyn1998 pushed a commit to tyn1998/open-galaxy that referenced this issue Nov 23, 2023
Simplified, added bootstrap

Laied out basic dom structure

Added loading logic

Very basic graph rendering

In FireFox responseType should be set after it is open

Using unrender to render the scene

Added readme

Properly unmount component

Properly disposing the scene

Added basic tooltip

Generating links

returning global endpoint

Added hover style

Quick and dirty add number of out links

Using only one element nearest to ray

Added indegree

Back to tooltip

Trying maco

Replaced scene with closure

Clean up, using flux-like communication

Playing with events system

Reworked hover tooltip

3x scale for highlighted node

Added click handler from native renderer

Restructured graph specific info

Extracted node info into base view model

Added rudimentary detail view

Removed unused code

Renamed to selectNode

Added steering wheel

Using simple details view, specific for each graph

Fixed wrong return type for 0 intersection

Added very basic search term

Small style tweaks

Aligned details with search bar
Moved loading to the right

Added super basic search

Separating based on functionality not kind

Added more details into the window list

Basic implementation of degree explorer

Playing with resources/templating

localizing for graphs

Moving dependency viewer towards details window

Moved node details to one place

Select node too when degree is selected

Moved templates to a folder

United degree viewer and node details

Added auto-focus when clicked on the node label

Added double click for fly to

Always show details for now

Added commands mode to the search box

Added function based graph search

Added basic links highlight

Added touch/orientation

Added edges

Very basic camera movement

Save camera rotation via quaternion

Removed unused code

Actually I'm using qs

Do not toggle links when meta key is down

Removed highlight abstraction

Removed removeHighlight method

Scale + max link distance = interesting

Added input accelerator

Refactored cameraService into appConfig

Save links setting to appConfig

Simplified

Reverse movement acceleration

ndoe size ~ # of dependents

Use appconfig for min visible link length

Removed cpan

Properly resolving modules in prod config

Fixed bug with persistent lineview

When switching visualizations sometimes old links were rendered in new
visualization

Whenever user starts moving - clear hover

Small tweaks for isolate size/graph scale

Extracted scale factor into hash config

Use scale from hash config

Autofocus

Small styling tweaks

Fixing broken minified resource detection

Better styles for the home page

Properly deallocating resources

Fixing bunch of styles

Temporary added avatars

  Too tired to think... This needs to be redone

Added error for missing webgl

Fixing loading indicator

Prototyping help

Added links to visualizations

Use latest maco

Removed old comment, updated navigation doc

Update README.md

Update README.md

Update README.md

Removed unused code

Update README.md

First version of help window

Not sure if I like it... but should be better than nothing

Added GA

Only show help after graph is downloaded

Use wheel only when over scene

First version of about

Youtube has no play button. Looks strange

Doh, wrong place

Added link to about page

Added about link

Added keywords

moved about to the bottom

plural

Need to dedupe to avoid crazy bugs in react

When multiple instances of React are loaded spooky things will happen.

Hiding horizontal scrollbar

Added deployment script

Allow non-string ids for nodes

Reducing length of the query string

Four digits seems to be enought for accourate angle presentation

Fixed ugly bug with excessive history update

Restoring isolated nodes to default size

Allowing switching between data set's history

This is very basic, but allows user to pick custom data at which data
set was last indexed.

Made it into a link

Fixing response type for IE

Fixed template for the default node info

Added CRAN details template

Allow custom endpoints

Fixed double load on back/forward history navigation

Added R language visualization

added link to video

Updated documentation

Added brew

Doh, I really need to refactor graph specific info. Duplicates are
killing me!

Added homebrew docs

Added debian

Removed overflow from body to #app

Added Debian package manager

Add arch packages

add arch + aur

Added nuget

Removed unused variable

Changed to table

Added simple rotator

For recording perfect loop gifs

Added preview to the welcome screen

Added images

Added og:image tag

Using async links initializer

Flying speed now depends on graph size

Hopefully this will make controls less sensitive

Added jsdocs

I need to fix how help is rendered too - sometimes when you use mouse
wheel while flying it flickers a lot

better formatting + NuGet

Fixed inLinks calculation

Added shift key description

Using recycled list items in the search results

Report edges initialization progress

Added python

Added icon

Currently it's the same as the one for composer

Added python links

Fixing anvaka/pm#10

Bind 'h' and '/' keys to toggle help screen

Fixed anvaka/pm#8

Secretly adding fedora

Not sure if this is correct graph. Need to confirm with
shaded-enmity/allrpm#1

Added Fedora

Wrong description

Doh, I need to be more careful

Renamed windowView->nodeListView

This is more accurately reflects what its doing

Use source maps

Updated to latest React infrastructure

Pointing to correct indexer repository

Fixed anvaka/pm#12

Added formatting for deps count

Set cursor to pointer in the search results

JavScript -> JavaScript

Just a typo fix.

disable host name check

Added windows start script

Fixes anvaka/pm#23

Fixed typo

updated data server instructions

updated years

fixed small screen trimming

added google view

added progress for non-computable requests

fixed the deployment script

added elm and rust

All kudos go to @brandly

updated years

feat: add node pagerank and community

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

增加Echarts支持。

修改webpack配置文件,添加import .png的支持。

在webpack<2.0.0中加入json-loader使其支持import xxx from 'xxx.json';

Add yarn.lock

各个组件的Mock Data,可以用http-server在'temp_http_server'目录下跑个临时http服务器来提供数据

组件CompaniesScatter

组件ContributorsGeoDistribution

组件MonthlyActiveReposAndUsers

组件ReposUsersTotal

组件TopActiveRepos

组件TopLanguages

组件UserActionsPie

组件模板:一个使用Echarts并且需要异步获取数据的例子

组件GitHubScreen:可用`键toggle的GitHub全域价值信息大屏

refactor: change line weight and opacity

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

CI: add test workflow with GitHub actions

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

fix: fix workflow directory

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

change pr test to comment trigger

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

fix: fix url for PR test

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

fix: fix ci workflows

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

anichart.js的依赖ffmpeg是ES6模块,需要包含进来用babel转换;empty是用来解决fs引入问题

Added component DynamicBar.

DynamicBar is based on anichart.js, and anichart.js is based on d3.js.

Set default value of "showLinks" to false.

Rendering large amount of links makes browser slow, so default set
links unvisible. Just use L key to toggle links visibility if you
want.

Style changes: make scroll bar more beautiful.

Style changes: force xAxis in echarts to show all axisLabels

In echarts, axis labels will default hide part of themselves when
space is limited. It's good for most of the time, but not in this
case. I want to force all labels to be visible.

Bug fix: should use componentDidUpdate rather than componentWillUpdate

Clearly I am totally a noob. If you want the new this.props.xxx in child
component after parent component calling its setState(), you should
get the new this.props.xxx in componenetDidUpdate state rather than
componentWillUpdate. 吃一堑,长一智。

Added component ProjectNetwork.

Added component ContributorNetwork.

Added component RepoDetails.

This component calls 3 sub components:
- DynamicBar
- ProjectNetwork
- ContributorNetwork

Config changes: http -> https

Added <RepoDetails/> to and removed <About/> from <Scene/>

Style changes: UI modification and language translation(into Chinese).

Discard the entry page <WelcomePage/> and set <GalaxyPage/> as the entry page.

ci: add publish workflow for master branch push

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

Add static resource dir 'public' to this webpack-based project

New feat: add i18n support

ci: add condition to avoid run CI on forked repos

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

refactor: Add baidu tongji

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

Merge "nebula-hackathon" (X-lab2017#35)

* add RFC.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* Update packages & A new webpack setup & Remove useless files & Update info in package.json (X-lab2017#18)

* [refactor] Removed maco and rewrote all components in native React syntax

maco is a package written by anvaka to "avoid using javascript classes
when dealing with React". Now is 2021, both javascript and React have
moved forward a giant step, so maco is not needed any more.

I have removed maco from package.json and rewrote all involded code in
native React syntax.

* [typo] had missed one case that should have be internationalized, so fixed it.

* [refactor] Removed useless node templates.

* [BIG update] Updated most of the existing packages & Substituted the old webpack configs with new ones.

Well, much of effort was put into this commit.

This project is based on anvaka/pm which is an old (but fantastic)
project came out in 2015. Both Webpack and React were in their early
versions. So were other packages used in this project.

So for this project, jumping from the old versions to the newest is
obviously troublesome. 总之我踩了好多坑.

The new webpack setup is just good but not perfect. It supports React
hot reload when in development mode and can output target files with
a smaller size (3.7MB compared with the old ~10MB) in production mode.

I am new to webpack configuration, maybe I can handle it more elegantly
in future.

* [typo] Due to update of less, a/b should be (a/b) now.

* [refactor] Removed files not needed any more.

* [doc] Updated basic info in package.json

* [fix] output.publicPath in webpack.config.js is wrong, so fix it.

- publicPath: "/" --> relative to server
- publicPath: "" --> relative to HTML file

Co-authored-by: 唐烨男 <tangyenan@MacBook-M1-Pro.local>

* ci: add hackathon branch build in CI (X-lab2017#19)

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* update RFC.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* add RFC.md (X-lab2017#17)

* add RFC.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* update RFC.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* doc: add architecture and testing detail to RFC (X-lab2017#21)

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* [refactor] switch from static data to dynamic data (X-lab2017#22)

Co-authored-by: Lam Tang <tangyenan@gmail.com>

* [fix] Properly handle cases that selected repo has no corresponding data (X-lab2017#23)

Co-authored-by: Lam Tang <tangyenan@gmail.com>

* [UI] Temporarily unmount DynamicBar component (X-lab2017#25)

Co-authored-by: Lam Tang <tangyenan@gmail.com>

* doc: add nebula http gateway into arch uml (X-lab2017#26)

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* Update README.md and LICENSE (X-lab2017#27)

* stash: RFC.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* Update README.md and LICENSE

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* fix picture position in README.md

Signed-off-by: Yeming Gu <yeminggood@gmail.com>

* feat: add hypertrons config (X-lab2017#30)

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* [Doc] Refactor uml arch (X-lab2017#31)

* doc: refactor uml arch

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* doc: replace uml path

Signed-off-by: Frankzhaopku <syzhao1988@126.com>

* refactor: adapt the code to bring the two networks back to life (X-lab2017#33)

* docs: ask developers to run this project using yarn instead of npm

docs: MUST use node 14

chore: add comment in .gitignore

* docs: prerequisites for running this project

* chore: remove big screens

* chore: remove DynamicBar component

* refactor: bring two networks back to life

* ci: correct workflow

---------

Signed-off-by: Yeming Gu <yeminggood@gmail.com>
Signed-off-by: Frankzhaopku <syzhao1988@126.com>
Co-authored-by: Yeming Gu <yeminggood@gmail.com>
Co-authored-by: 唐烨男 <tangyenan@MacBook-M1-Pro.local>
Co-authored-by: Frank Zhao <syzhao1988@126.com>
Co-authored-by: Yeming Gu <37684061+gymgym1212@users.noreply.github.com>

ci: regex-match should not be used in publish.yml

docs: update README (X-lab2017#36)

* fix: this project is licensed under Apache-2.0 but not MIT

* docs: update README

refactor: adapt for the new genertaed data(v2) (X-lab2017#37)

* refactor: adapt for the new genertaed data(v2)

* refactor: modify line view width and opacity

Signed-off-by: frank-zsy <syzhao1988@126.com>

* chore: hardcode the data version to 'v2'

* chore: 'Contributor' --> 'Developer' && '贡献者' --> '开发者'

* fix: avoid horizontal scroll bar triggered by node-hover-tooltip

* fix: if edges is [] the Graph will crash

* feat: support two kinds of nodes and improve the UI

* Revert "chore: hardcode the data version to 'v2'"

This reverts commit 4a5f2bd.

* chore: enable showLinks by default

* feat: make logo and name clickable

---------

Signed-off-by: frank-zsy <syzhao1988@126.com>
Co-authored-by: frank-zsy <syzhao1988@126.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants