anvaka / pm

package managers visualization
https://anvaka.github.io/pm/
MIT License
1.57k stars 135 forks source link

Failed at start script #23

Closed laaposto closed 6 years ago

laaposto commented 7 years ago

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 commented 6 years ago

same problem here

anvaka commented 6 years ago

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

PORT=9090 node dev-server
Kohze commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.