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.

Getting Started NodeJS+Yarn fails to run

See original GitHub issue

Describe the bug

When the workspace is started, the predefined commands can not be run. The first command that needs to be run is install all required dependencies.

The error is shown in terminal:

error Could not write file "/projects/react-web-app/yarn-error.log": "errmap.get is not a function or its return value is not iterable"`
error An unexpected error occurred: "Unknown system error -122: Unknown system error -122, copyfile '/home/user/.cache/yarn/v4/npm-@babel-types-7.10.5-d88ae7e2fde86bfbfe851d4d81afa70a997b5d15/node_modules/@babel/types/lib/definitions/utils.js' -> '/projects/react-web-app/node_modules/@babel/plugin-syntax-object-rest-spread/node_modules/@babel/types/lib/definitions/utils.js'".

Che version

  • latest 7.16.0
  • nightly
  • other: please specify

Steps to reproduce

  1. Go to Get Started page and Get Started tab
  2. Cick on NodeJS Web Application based on Yarn
  3. Run command install all required dependencies

Expected behavior

The commands should work correctly.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version) 4.4
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

EDIT: Updated image Screenshot from 2020-07-22 11-32-44

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don’t know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify OpenStack

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
benoitfcommented, Jul 30, 2020

I already had this issue, it’s related to an out-of-space on the disk in ephemeral case

yarn command download node_modules but fail to download more as ephemeral storage is reached

to validate that, when you see this message, try to do:

echo "test" > /projects/foo

it will display a message indicating that there is no more space

0reactions
ericwillcommented, Sep 9, 2020

Thanks for the fix @svor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn Start Command failed with exit code 1 - Stack Overflow
Go to start-menu -> search and type environment variables and open it · There will be a variable named PATH. Append C:\Windows\system32 to...
Read more >
yarn install failing #109 - GoogleCloudPlatform/nodejs-docker
Deployments just started breaking for me, removing the yarn.lock file (thus falling back to npm) fixes the issue.
Read more >
How To Install and Use the Yarn Package Manager for Node.js
Yarn is a package manager for Node.js that focuses on speed, security, and consistency. In this tutorial you will install Yarn globally, ...
Read more >
Error Codes | Yarn - Package Manager
A package build failed. This problem typically doesn't come from Yarn itself, and simply means that a package described as having build directives...
Read more >
Getting Started - ESBuild
If you run the code using node out.js , you should see something like this: ... so no additional configuration is necessary to...
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