Skip to content

The yarn reports an error at runtime #184

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

Closed
407chendaxia opened this issue Mar 10, 2019 · 17 comments
Closed

The yarn reports an error at runtime #184

407chendaxia opened this issue Mar 10, 2019 · 17 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@407chendaxia
Copy link

code-server version: master branch
OS Version: windows10

When I ran the yarn at the root directory, it reports a error:

INFO Installing "logger" dependencies...
ERROR Failed to install "logger" dependencies {"error":{"killed":false,"code":1,"signal":null,"cmd":"yarn --network-concurrency 1"},"stdout":"[1/4] Resolving packages...\nsuccess Already up-to-date.\n$ if [ ! -d out ];then npm run build; fi\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n","stderr":"warning ..\package.json: No license field\n��ʱ��Ӧ�� !��\r\nerror Command failed with exit code 1.\n"}

@sr229
Copy link
Contributor

sr229 commented Mar 10, 2019

Hey @407chendaxia, I want to know your system info so its easier for us to diagnose the problem, typically yarn works without issues, and this seems rare.

@nhooyr
Copy link
Contributor

nhooyr commented Mar 10, 2019

Could you provide the full log?

@nhooyr nhooyr added waiting-for-info Waiting for more information from submitter and removed question labels Mar 10, 2019
@jeasonstudio
Copy link
Contributor

@407chendaxia 在并行安装依赖的时候会导致这个问题。也可能是GFW 的原因导致的。
@nhooyr This problem is caused when parallel installation dependencies. It may also be that the Chinese firewall makes the installation fail.

Maybe fix at #176

Or add these to your .npmrc file:

registry=https://registry.npm.taobao.org/
electron_mirror=https://npm.taobao.org/mirrors/electron
chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass
disturl=https://npm.taobao.org/mirrors/node
fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents

@sr229
Copy link
Contributor

sr229 commented Mar 11, 2019

Sometime I wonder why even that firewall blocks NPM.

China get your crap right.

@407chendaxia
Copy link
Author

Sometime I wonder why even that firewall blocks NPM.

China get your crap right.

Sorry,this is not a firewall issue but a China Telecom issue. There are three telecommunications operator in China, only the China Telecom has this issue.

@407chendaxia
Copy link
Author

Could you provide the full log?

Could you provide the full log?

I used this tool for the first time, I just executed the yarn command in the directory.

@407chendaxia
Copy link
Author

Could you provide the full log?

I followed the log and found that when I executed 'node_modules.bin>ts-node scripts\install-packages.ts', I get this error.

@sr229
Copy link
Contributor

sr229 commented Mar 13, 2019

@nhooyr this is network related issue so I don't think it merits a full verbose log during yarn install

@nhooyr
Copy link
Contributor

nhooyr commented Mar 13, 2019

The provided error doesn't indicate anything. How do you know its a network issue?

@sean256
Copy link

sean256 commented Mar 23, 2019

I too am having this

ERROR Failed to install "logger" dependencies {"error":{"killed":false,"code":1,"signal":null,"cmd":"yarn --network-concurrency 1"},"stdout":"[1/4] Resolving packages...\nsuccess Already up-to-date.\n$ if [ ! -d out ];then npm run build; fi\n\n> @coder/[email protected] build /Volumes/gits/code-server/packages/logger\n> tsc -p tsconfig.build.json && cp ./out/packages/logger/src/* ./out && rm -rf out/packages && ../../node_modules/.bin/webpack --config ./webpack.config.js\n\nerror TS5023: Unknown compiler option 'emitDeclarationOnly'.\nerror TS5023: Unknown compiler option 'resolveJsonModule'.\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n","stderr":"warning ../package.json: No license field\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! @coder/[email protected] build: `tsc -p tsconfig.build.json && cp ./out/packages/logger/src/* ./out && rm -rf out/packages && ../../node_modules/.bin/webpack --config ./webpack.config.js`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the @coder/[email protected] build script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /Users/sean/.npm/_logs/2019-03-23T03_12_28_733Z-debug.log\nerror Command failed with exit code 1.\n"}

@sean256
Copy link

sean256 commented Mar 23, 2019

Got it! I had a very old version of tsc installed. Being brand new to this project I didn't event know I had to have it as a global dependency.

Maybe it would be a good idea to add something to the readme for a developing quick-start guide?

@sr229
Copy link
Contributor

sr229 commented Mar 23, 2019

We'll see if the developers can provide it, because I'm afraid the developers know more how it works

@dijiang
Copy link

dijiang commented Apr 19, 2019

image

i have the same proble on win10, how to fix? @sean256

@dijiang
Copy link

dijiang commented Apr 19, 2019

image

@dijiang
Copy link

dijiang commented Apr 19, 2019

image
ts-node problem?

@nol166
Copy link
Contributor

nol166 commented Apr 19, 2019

Windows builds are not fully working yet

@kylecarbs
Copy link
Member

Seems like this yarn error has been fixed since we no longer install dependencies in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

8 participants