question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: morphlingjs@0.1.99 postinstall: `NODE_PORT=1 docker-compose build`

See original GitHub issue

Hi there, I’d be very interested in trying this tool out but when i run npm i -g morphlingjs I get an error stating that postinstall failed. I haven’t used docker before so it could be also that.

Here’s npm log:

24100 error Windows_NT 10.0.15063
24101 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g" "morphlingjs"
24102 error node v6.10.3
24103 error npm  v3.10.10
24104 error code ELIFECYCLE
24105 error morphlingjs@0.1.99 postinstall: `NODE_PORT=1 docker-compose build`
24105 error Exit status 1
24106 error Failed at the morphlingjs@0.1.99 postinstall script 'NODE_PORT=1 docker-compose build'.
24106 error Make sure you have the latest version of node.js and npm installed.
24106 error If you do, this is most likely a problem with the morphlingjs package,
24106 error not with npm itself.
24106 error Tell the author that this fails on your system:
24106 error     NODE_PORT=1 docker-compose build
24106 error You can get information on how to open an issue for this project with:
24106 error     npm bugs morphlingjs
24106 error Or if that isn't available, you can get their info via:
24106 error     npm owner ls morphlingjs
24106 error There is likely additional logging output above.
24107 verbose exit [ 1, true ]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pmachartcommented, Nov 16, 2017

doing NODE_PORT=1 docker-compose build is the bash way of creating a “local” environment variable to be used by the program in the command line it seems to just not work on windows CLI.

try doing SET NODE_PORT=1 and then docker-compose build it might just work.

On Thu, Nov 16, 2017 at 3:44 PM, Tuomas Ukkola notifications@github.com wrote:

Hi. Running NODE_PORT=1 docker-compose build gives me ‘NODE_PORT’ is not recognized as an internal or external command, operable program or batch file. error. So I tried replacing ${NODE_PORT} with 1 in docker-compose.yml and tried again but got

Building web Traceback (most recent call last): File “docker-compose”, line 6, in <module> File “compose\cli\main.py”, line 68, in main File “compose\cli\main.py”, line 121, in perform_command File “compose\cli\main.py”, line 249, in build File “compose\project.py”, line 343, in build File “compose\service.py”, line 918, in build File “site-packages\docker\api\build.py”, line 246, in build File “site-packages\docker\utils\decorators.py”, line 46, in inner File “site-packages\docker\api\client.py”, line 185, in _post File “site-packages\requests\sessions.py”, line 522, in post File “site-packages\requests\sessions.py”, line 475, in request File “site-packages\requests\sessions.py”, line 596, in send File “site-packages\requests\adapters.py”, line 423, in send File “site-packages\requests\packages\urllib3\connectionpool.py”, line 595, in urlopen File “site-packages\requests\packages\urllib3\connectionpool.py”, line 363, in _make_request File “httplib.py”, line 1042, in request File “httplib.py”, line 1082, in _send_request File “httplib.py”, line 1038, in endheaders File “httplib.py”, line 882, in _send_output File “httplib.py”, line 844, in send File “site-packages\docker\transport\npipeconn.py”, line 31, in connect File “site-packages\docker\transport\npipesocket.py”, line 22, in wrapped File “site-packages\docker\transport\npipesocket.py”, line 50, in connect pywintypes.error: (2, ‘WaitNamedPipe’, ‘The system cannot find the file specified.’) Failed to execute script docker-compose

Sorry for late reply @vroudge https://github.com/vroudge

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leboncoin/morphlingjs/issues/5#issuecomment-344943469, or mute the thread https://github.com/notifications/unsubscribe-auth/AMjZ40Ap0ADnrYbIPJ_P2vBhGxz8IAWaks5s3EpSgaJpZM4QXyiz .

– Cordialement, Pierre-Marie Achart.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fails to invoke npm when used in run-scripts #1734 - GitHub
I'm having a similar issue. We're seeing it when we try to do an npm install from the Docker command, when we set...
Read more >
Cannot find module for a node js app running in a docker ...
When I do docker-compose up, I get this error: backend_1 | npm info it worked if it ends with ok backend_1 | npm...
Read more >
Compose file version 3 reference - Docker Documentation
Compose file version 3 reference. Reference and guidelines . These topics describe version 3 of the Compose file format. This is the...
Read more >
Create a Dev Container - Visual Studio Code
Configure multiple containers through Docker Compose. ... that uses a pre-built TypeScript and Node.js VS Code Development Container image:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found