Describe the bug
Absolute imports doesn't work in CRA.
import App from 'folder-in-src/App'
To Reproduce
``js repro
const path = require(path);
const {promises: {writeFile}} = require(fs`);
await yarn(dlx, create-react-app, test)
process.chdir(path.resolve(process.cwd(), 'test'));
await writeFile("jsconfig.json",
{
"compilerOptions": {
"baseUrl": "src/"
}
}
)
await writeFile("src/Component1.jsx", `
import React from 'react';
function Component1() {
return
export default Component1;
`)
await writeFile("src/App.jsx", `
import React from 'react';
import Component1 from 'Component1';
function App() {
return
}
export default App;
`)
await expect(yarn(build)).rejects.not.toThrow(
/Module not found/
);
npx create-react-app test
add a jsconfig.json
{
"compilerOptions": {
"baseUrl": "src/"
}
}
try to use an absolute import (supported in CRA + works fine in yarn1)
``` import App from 'folder-in-src/App' ```
You get
./src/App.jsx
Module not found: Something that got detected as your top-level application (because it doesn't
seem to belong to any package) tried to access a package that is not declared in your dependencies
```
Works fine with yarn 1
What did you do by "try to use an absolute import"?
Maybe you can write a repro in your issue: https://next.yarnpkg.com/advanced/sherlock
(It's up to you to complete the following repro -- I am not sure if it can work)
`markdown
js repro
const {promises: {writeFile}} = require(fs);
await yarn(dlx, create-react-app)
await writeFile("jsconfig.json",
{
"compilerOptions": {
"baseUrl": "src/"
}
}
)
await writeFile("src/App.jsx",
// demo your "absolute imports"
)
await expect(yarn(build)).rejects.not.toThrow(
/Module not found/
);
```
````
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app
Please specify the project directory:
[94m➤[39m [90mYN0000[39m: ┌ Resolution step
[94m➤[39m [90mYN0000[39m: └ Completed in 1.88s
[94m➤[39m [90mYN0000[39m: ┌ Fetch step
[94m➤[39m YN0013: │ [38;5;173mansi-styles[39m[38;5;111m@[39m[38;5;111mnpm:3.2.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbalanced-match[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-escapes[39m[38;5;111m@[39m[38;5;111mnpm:3.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:4.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mblock-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbrace-expansion[39m[38;5;111m@[39m[38;5;111mnpm:1.1.11[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuffer-from[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuiltins[39m[38;5;111m@[39m[38;5;111mnpm:1.0.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchalk[39m[38;5;111m@[39m[38;5;111mnpm:2.4.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchardet[39m[38;5;111m@[39m[38;5;111mnpm:0.7.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-width[39m[38;5;111m@[39m[38;5;111mnpm:2.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-convert[39m[38;5;111m@[39m[38;5;111mnpm:1.9.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-name[39m[38;5;111m@[39m[38;5;111mnpm:1.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcommander[39m[38;5;111m@[39m[38;5;111mnpm:2.20.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcore-util-is[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mconcat-map[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcreate-react-app[39m[38;5;111m@[39m[38;5;111mnpm:3.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcross-spawn[39m[38;5;111m@[39m[38;5;111mnpm:6.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mdebug[39m[38;5;111m@[39m[38;5;111mnpm:2.6.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mduplexer2[39m[38;5;111m@[39m[38;5;111mnpm:0.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173menvinfo[39m[38;5;111m@[39m[38;5;111mnpm:7.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mescape-string-regexp[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mexternal-editor[39m[38;5;111m@[39m[38;5;111mnpm:3.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfigures[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs-extra[39m[38;5;111m@[39m[38;5;111mnpm:7.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs.realpath[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream-ignore[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.12[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mglob[39m[38;5;111m@[39m[38;5;111mnpm:7.1.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mgraceful-fs[39m[38;5;111m@[39m[38;5;111mnpm:4.2.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhas-flag[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhyperquest[39m[38;5;111m@[39m[38;5;111mnpm:2.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173miconv-lite[39m[38;5;111m@[39m[38;5;111mnpm:0.4.24[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minflight[39m[38;5;111m@[39m[38;5;111mnpm:1.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minherits[39m[38;5;111m@[39m[38;5;111mnpm:2.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minquirer[39m[38;5;111m@[39m[38;5;111mnpm:6.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-fullwidth-code-point[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-promise[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misexe[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mjsonfile[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mlodash[39m[38;5;111m@[39m[38;5;111mnpm:4.17.15[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmimic-fn[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimatch[39m[38;5;111m@[39m[38;5;111mnpm:3.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimist[39m[38;5;111m@[39m[38;5;111mnpm:0.0.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmkdirp[39m[38;5;111m@[39m[38;5;111mnpm:0.5.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mms[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmute-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mnice-try[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monce[39m[38;5;111m@[39m[38;5;111mnpm:1.4.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monetime[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mos-tmpdir[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-is-absolute[39m[38;5;111m@[39m[38;5;111mnpm:1.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-key[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mprocess-nextick-args[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.34[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.1.14[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:2.3.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrestore-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrimraf[39m[38;5;111m@[39m[38;5;111mnpm:2.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrun-async[39m[38;5;111m@[39m[38;5;111mnpm:2.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrxjs[39m[38;5;111m@[39m[38;5;111mnpm:6.5.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafe-buffer[39m[38;5;111m@[39m[38;5;111mnpm:5.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafer-buffer[39m[38;5;111m@[39m[38;5;111mnpm:2.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:5.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:6.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-command[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-regex[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msignal-exit[39m[38;5;111m@[39m[38;5;111mnpm:3.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring-width[39m[38;5;111m@[39m[38;5;111mnpm:2.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:0.10.31[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:1.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:5.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msupports-color[39m[38;5;111m@[39m[38;5;111mnpm:5.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar-pack[39m[38;5;111m@[39m[38;5;111mnpm:3.4.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar[39m[38;5;111m@[39m[38;5;111mnpm:2.2.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough2[39m[38;5;111m@[39m[38;5;111mnpm:0.6.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough[39m[38;5;111m@[39m[38;5;111mnpm:2.3.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtmp[39m[38;5;111m@[39m[38;5;111mnpm:0.0.33[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtslib[39m[38;5;111m@[39m[38;5;111mnpm:1.10.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muid-number[39m[38;5;111m@[39m[38;5;111mnpm:0.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muniversalify[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mutil-deprecate[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mvalidate-npm-package-name[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwhich[39m[38;5;111m@[39m[38;5;111mnpm:1.3.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwrappy[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mxtend[39m[38;5;111m@[39m[38;5;111mnpm:4.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m [90mYN0000[39m: └ Completed in 4.84s
[94m➤[39m [90mYN0000[39m: ┌ Link step
[94m➤[39m [90mYN0000[39m: └ Completed in 0.31s
[94m➤[39m YN0000: Done in 7.04s
create-react-app <project-directory>
For example:
create-react-app my-react-app
Run create-react-app --help to see all options.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app
Please specify the project directory:
[94m➤[39m [90mYN0000[39m: ┌ Resolution step
[94m➤[39m [90mYN0000[39m: └ Completed in 1.72s
[94m➤[39m [90mYN0000[39m: ┌ Fetch step
[94m➤[39m YN0013: │ [38;5;173mansi-styles[39m[38;5;111m@[39m[38;5;111mnpm:3.2.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbalanced-match[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-escapes[39m[38;5;111m@[39m[38;5;111mnpm:3.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:4.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mblock-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbrace-expansion[39m[38;5;111m@[39m[38;5;111mnpm:1.1.11[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuffer-from[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuiltins[39m[38;5;111m@[39m[38;5;111mnpm:1.0.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchalk[39m[38;5;111m@[39m[38;5;111mnpm:2.4.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchardet[39m[38;5;111m@[39m[38;5;111mnpm:0.7.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-width[39m[38;5;111m@[39m[38;5;111mnpm:2.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-convert[39m[38;5;111m@[39m[38;5;111mnpm:1.9.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-name[39m[38;5;111m@[39m[38;5;111mnpm:1.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcommander[39m[38;5;111m@[39m[38;5;111mnpm:2.20.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mconcat-map[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcore-util-is[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcreate-react-app[39m[38;5;111m@[39m[38;5;111mnpm:3.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcross-spawn[39m[38;5;111m@[39m[38;5;111mnpm:6.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mdebug[39m[38;5;111m@[39m[38;5;111mnpm:2.6.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mduplexer2[39m[38;5;111m@[39m[38;5;111mnpm:0.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173menvinfo[39m[38;5;111m@[39m[38;5;111mnpm:7.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mescape-string-regexp[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mexternal-editor[39m[38;5;111m@[39m[38;5;111mnpm:3.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfigures[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs-extra[39m[38;5;111m@[39m[38;5;111mnpm:7.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs.realpath[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream-ignore[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.12[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mglob[39m[38;5;111m@[39m[38;5;111mnpm:7.1.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mgraceful-fs[39m[38;5;111m@[39m[38;5;111mnpm:4.2.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhas-flag[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhyperquest[39m[38;5;111m@[39m[38;5;111mnpm:2.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173miconv-lite[39m[38;5;111m@[39m[38;5;111mnpm:0.4.24[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minflight[39m[38;5;111m@[39m[38;5;111mnpm:1.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minherits[39m[38;5;111m@[39m[38;5;111mnpm:2.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minquirer[39m[38;5;111m@[39m[38;5;111mnpm:6.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-fullwidth-code-point[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-promise[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misexe[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mjsonfile[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mlodash[39m[38;5;111m@[39m[38;5;111mnpm:4.17.15[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmimic-fn[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimatch[39m[38;5;111m@[39m[38;5;111mnpm:3.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimist[39m[38;5;111m@[39m[38;5;111mnpm:0.0.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmkdirp[39m[38;5;111m@[39m[38;5;111mnpm:0.5.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mms[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmute-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mnice-try[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monce[39m[38;5;111m@[39m[38;5;111mnpm:1.4.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monetime[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mos-tmpdir[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-is-absolute[39m[38;5;111m@[39m[38;5;111mnpm:1.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-key[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mprocess-nextick-args[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.34[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.1.14[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:2.3.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrestore-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrimraf[39m[38;5;111m@[39m[38;5;111mnpm:2.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrun-async[39m[38;5;111m@[39m[38;5;111mnpm:2.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrxjs[39m[38;5;111m@[39m[38;5;111mnpm:6.5.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafe-buffer[39m[38;5;111m@[39m[38;5;111mnpm:5.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafer-buffer[39m[38;5;111m@[39m[38;5;111mnpm:2.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:5.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:6.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-command[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-regex[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msignal-exit[39m[38;5;111m@[39m[38;5;111mnpm:3.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring-width[39m[38;5;111m@[39m[38;5;111mnpm:2.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:0.10.31[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:1.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:5.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msupports-color[39m[38;5;111m@[39m[38;5;111mnpm:5.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar-pack[39m[38;5;111m@[39m[38;5;111mnpm:3.4.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar[39m[38;5;111m@[39m[38;5;111mnpm:2.2.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough2[39m[38;5;111m@[39m[38;5;111mnpm:0.6.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough[39m[38;5;111m@[39m[38;5;111mnpm:2.3.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtmp[39m[38;5;111m@[39m[38;5;111mnpm:0.0.33[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtslib[39m[38;5;111m@[39m[38;5;111mnpm:1.10.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muid-number[39m[38;5;111m@[39m[38;5;111mnpm:0.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muniversalify[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mutil-deprecate[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mvalidate-npm-package-name[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwhich[39m[38;5;111m@[39m[38;5;111mnpm:1.3.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwrappy[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mxtend[39m[38;5;111m@[39m[38;5;111mnpm:4.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m [90mYN0000[39m: └ Completed in 4.41s
[94m➤[39m [90mYN0000[39m: ┌ Link step
[94m➤[39m [90mYN0000[39m: └ Completed in 0.28s
[94m➤[39m YN0000: Done in 6.42s
create-react-app <project-directory>
For example:
create-react-app my-react-app
Run create-react-app --help to see all options.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app
Please specify the project directory:
[94m➤[39m [90mYN0000[39m: ┌ Resolution step
[94m➤[39m [90mYN0000[39m: └ Completed in 1.81s
[94m➤[39m [90mYN0000[39m: ┌ Fetch step
[94m➤[39m YN0013: │ [38;5;173mansi-styles[39m[38;5;111m@[39m[38;5;111mnpm:3.2.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbalanced-match[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-escapes[39m[38;5;111m@[39m[38;5;111mnpm:3.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:4.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mblock-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbrace-expansion[39m[38;5;111m@[39m[38;5;111mnpm:1.1.11[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuffer-from[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuiltins[39m[38;5;111m@[39m[38;5;111mnpm:1.0.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchalk[39m[38;5;111m@[39m[38;5;111mnpm:2.4.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchardet[39m[38;5;111m@[39m[38;5;111mnpm:0.7.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-width[39m[38;5;111m@[39m[38;5;111mnpm:2.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-convert[39m[38;5;111m@[39m[38;5;111mnpm:1.9.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-name[39m[38;5;111m@[39m[38;5;111mnpm:1.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcommander[39m[38;5;111m@[39m[38;5;111mnpm:2.20.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mconcat-map[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcore-util-is[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcreate-react-app[39m[38;5;111m@[39m[38;5;111mnpm:3.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcross-spawn[39m[38;5;111m@[39m[38;5;111mnpm:6.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mdebug[39m[38;5;111m@[39m[38;5;111mnpm:2.6.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mduplexer2[39m[38;5;111m@[39m[38;5;111mnpm:0.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173menvinfo[39m[38;5;111m@[39m[38;5;111mnpm:7.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mescape-string-regexp[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mexternal-editor[39m[38;5;111m@[39m[38;5;111mnpm:3.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfigures[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs-extra[39m[38;5;111m@[39m[38;5;111mnpm:7.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs.realpath[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream-ignore[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.12[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mglob[39m[38;5;111m@[39m[38;5;111mnpm:7.1.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mgraceful-fs[39m[38;5;111m@[39m[38;5;111mnpm:4.2.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhas-flag[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhyperquest[39m[38;5;111m@[39m[38;5;111mnpm:2.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173miconv-lite[39m[38;5;111m@[39m[38;5;111mnpm:0.4.24[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minflight[39m[38;5;111m@[39m[38;5;111mnpm:1.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minherits[39m[38;5;111m@[39m[38;5;111mnpm:2.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minquirer[39m[38;5;111m@[39m[38;5;111mnpm:6.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-fullwidth-code-point[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-promise[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misexe[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mjsonfile[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mlodash[39m[38;5;111m@[39m[38;5;111mnpm:4.17.15[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmimic-fn[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimatch[39m[38;5;111m@[39m[38;5;111mnpm:3.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimist[39m[38;5;111m@[39m[38;5;111mnpm:0.0.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmkdirp[39m[38;5;111m@[39m[38;5;111mnpm:0.5.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mms[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmute-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mnice-try[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monce[39m[38;5;111m@[39m[38;5;111mnpm:1.4.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monetime[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mos-tmpdir[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-is-absolute[39m[38;5;111m@[39m[38;5;111mnpm:1.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-key[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mprocess-nextick-args[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.34[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.1.14[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:2.3.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrestore-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrimraf[39m[38;5;111m@[39m[38;5;111mnpm:2.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrun-async[39m[38;5;111m@[39m[38;5;111mnpm:2.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrxjs[39m[38;5;111m@[39m[38;5;111mnpm:6.5.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafe-buffer[39m[38;5;111m@[39m[38;5;111mnpm:5.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafer-buffer[39m[38;5;111m@[39m[38;5;111mnpm:2.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:5.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:6.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-command[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-regex[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msignal-exit[39m[38;5;111m@[39m[38;5;111mnpm:3.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring-width[39m[38;5;111m@[39m[38;5;111mnpm:2.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:0.10.31[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:1.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:5.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msupports-color[39m[38;5;111m@[39m[38;5;111mnpm:5.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar-pack[39m[38;5;111m@[39m[38;5;111mnpm:3.4.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar[39m[38;5;111m@[39m[38;5;111mnpm:2.2.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough2[39m[38;5;111m@[39m[38;5;111mnpm:0.6.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough[39m[38;5;111m@[39m[38;5;111mnpm:2.3.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtmp[39m[38;5;111m@[39m[38;5;111mnpm:0.0.33[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtslib[39m[38;5;111m@[39m[38;5;111mnpm:1.10.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muid-number[39m[38;5;111m@[39m[38;5;111mnpm:0.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muniversalify[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mutil-deprecate[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mvalidate-npm-package-name[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwhich[39m[38;5;111m@[39m[38;5;111mnpm:1.3.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwrappy[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mxtend[39m[38;5;111m@[39m[38;5;111mnpm:4.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m [90mYN0000[39m: └ Completed in 5.02s
[94m➤[39m [90mYN0000[39m: ┌ Link step
[94m➤[39m [90mYN0000[39m: └ Completed in 0.31s
[94m➤[39m YN0000: Done in 7.15s
create-react-app <project-directory>
For example:
create-react-app my-react-app
Run create-react-app --help to see all options.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
I think it's worth to try
await yarn(`dlx`, `create-react-app`, `.`)
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app .
[91m➤[39m BR0027: [38;5;173mcreate-react-app .[39m[38;5;37m@[39m[38;5;37munknown[39m can't be resolved to a satisfying range
[91m➤[39m Errors happened when preparing the environment required to run this command.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app .
[91m➤[39m BR0027: [38;5;173mcreate-react-app .[39m[38;5;37m@[39m[38;5;37munknown[39m can't be resolved to a satisfying range
[91m➤[39m Errors happened when preparing the environment required to run this command.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app .
[91m➤[39m BR0027: [38;5;173mcreate-react-app .[39m[38;5;37m@[39m[38;5;37munknown[39m can't be resolved to a satisfying range
[91m➤[39m Errors happened when preparing the environment required to run this command.
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js dlx create-react-app .
Could not create a project called "tmp-2764X4nJNqbGJV" because of npm naming restrictions:
* name can no longer contain capital letters
[94m➤[39m [90mYN0000[39m: ┌ Resolution step
[94m➤[39m [90mYN0000[39m: └ Completed in 1.78s
[94m➤[39m [90mYN0000[39m: ┌ Fetch step
[94m➤[39m YN0013: │ [38;5;173mansi-styles[39m[38;5;111m@[39m[38;5;111mnpm:3.2.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbalanced-match[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-escapes[39m[38;5;111m@[39m[38;5;111mnpm:3.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mansi-regex[39m[38;5;111m@[39m[38;5;111mnpm:4.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mblock-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbrace-expansion[39m[38;5;111m@[39m[38;5;111mnpm:1.1.11[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuffer-from[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mbuiltins[39m[38;5;111m@[39m[38;5;111mnpm:1.0.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchalk[39m[38;5;111m@[39m[38;5;111mnpm:2.4.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mchardet[39m[38;5;111m@[39m[38;5;111mnpm:0.7.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcli-width[39m[38;5;111m@[39m[38;5;111mnpm:2.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-convert[39m[38;5;111m@[39m[38;5;111mnpm:1.9.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcolor-name[39m[38;5;111m@[39m[38;5;111mnpm:1.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcommander[39m[38;5;111m@[39m[38;5;111mnpm:2.20.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mconcat-map[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcore-util-is[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcreate-react-app[39m[38;5;111m@[39m[38;5;111mnpm:3.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mcross-spawn[39m[38;5;111m@[39m[38;5;111mnpm:6.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mdebug[39m[38;5;111m@[39m[38;5;111mnpm:2.6.9[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mduplexer2[39m[38;5;111m@[39m[38;5;111mnpm:0.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173menvinfo[39m[38;5;111m@[39m[38;5;111mnpm:7.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mescape-string-regexp[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mexternal-editor[39m[38;5;111m@[39m[38;5;111mnpm:3.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfigures[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs-extra[39m[38;5;111m@[39m[38;5;111mnpm:7.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfs.realpath[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream-ignore[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mfstream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.12[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mglob[39m[38;5;111m@[39m[38;5;111mnpm:7.1.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mgraceful-fs[39m[38;5;111m@[39m[38;5;111mnpm:4.2.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhas-flag[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mhyperquest[39m[38;5;111m@[39m[38;5;111mnpm:2.1.3[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173miconv-lite[39m[38;5;111m@[39m[38;5;111mnpm:0.4.24[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minflight[39m[38;5;111m@[39m[38;5;111mnpm:1.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minherits[39m[38;5;111m@[39m[38;5;111mnpm:2.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173minquirer[39m[38;5;111m@[39m[38;5;111mnpm:6.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-fullwidth-code-point[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mis-promise[39m[38;5;111m@[39m[38;5;111mnpm:2.1.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:0.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misarray[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173misexe[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mjsonfile[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mlodash[39m[38;5;111m@[39m[38;5;111mnpm:4.17.15[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmimic-fn[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimatch[39m[38;5;111m@[39m[38;5;111mnpm:3.0.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mminimist[39m[38;5;111m@[39m[38;5;111mnpm:0.0.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmkdirp[39m[38;5;111m@[39m[38;5;111mnpm:0.5.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mms[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mmute-stream[39m[38;5;111m@[39m[38;5;111mnpm:0.0.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mnice-try[39m[38;5;111m@[39m[38;5;111mnpm:1.0.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monce[39m[38;5;111m@[39m[38;5;111mnpm:1.4.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173monetime[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mos-tmpdir[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-is-absolute[39m[38;5;111m@[39m[38;5;111mnpm:1.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mpath-key[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mprocess-nextick-args[39m[38;5;111m@[39m[38;5;111mnpm:2.0.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.0.34[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:1.1.14[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mreadable-stream[39m[38;5;111m@[39m[38;5;111mnpm:2.3.7[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrestore-cursor[39m[38;5;111m@[39m[38;5;111mnpm:2.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrimraf[39m[38;5;111m@[39m[38;5;111mnpm:2.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrun-async[39m[38;5;111m@[39m[38;5;111mnpm:2.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mrxjs[39m[38;5;111m@[39m[38;5;111mnpm:6.5.4[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafe-buffer[39m[38;5;111m@[39m[38;5;111mnpm:5.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msafer-buffer[39m[38;5;111m@[39m[38;5;111mnpm:2.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:5.7.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msemver[39m[38;5;111m@[39m[38;5;111mnpm:6.3.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-command[39m[38;5;111m@[39m[38;5;111mnpm:1.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mshebang-regex[39m[38;5;111m@[39m[38;5;111mnpm:1.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msignal-exit[39m[38;5;111m@[39m[38;5;111mnpm:3.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring-width[39m[38;5;111m@[39m[38;5;111mnpm:2.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:0.10.31[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstring_decoder[39m[38;5;111m@[39m[38;5;111mnpm:1.1.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:4.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mstrip-ansi[39m[38;5;111m@[39m[38;5;111mnpm:5.2.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173msupports-color[39m[38;5;111m@[39m[38;5;111mnpm:5.5.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar-pack[39m[38;5;111m@[39m[38;5;111mnpm:3.4.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtar[39m[38;5;111m@[39m[38;5;111mnpm:2.2.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough2[39m[38;5;111m@[39m[38;5;111mnpm:0.6.5[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mthrough[39m[38;5;111m@[39m[38;5;111mnpm:2.3.8[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtmp[39m[38;5;111m@[39m[38;5;111mnpm:0.0.33[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mtslib[39m[38;5;111m@[39m[38;5;111mnpm:1.10.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muid-number[39m[38;5;111m@[39m[38;5;111mnpm:0.0.6[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173muniversalify[39m[38;5;111m@[39m[38;5;111mnpm:0.1.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mutil-deprecate[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mvalidate-npm-package-name[39m[38;5;111m@[39m[38;5;111mnpm:3.0.0[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwhich[39m[38;5;111m@[39m[38;5;111mnpm:1.3.1[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mwrappy[39m[38;5;111m@[39m[38;5;111mnpm:1.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m YN0013: │ [38;5;173mxtend[39m[38;5;111m@[39m[38;5;111mnpm:4.0.2[39m can't be found in the cache and will be fetched from the remote registry
[94m➤[39m [90mYN0000[39m: └ Completed in 4.62s
[94m➤[39m [90mYN0000[39m: ┌ Link step
[94m➤[39m [90mYN0000[39m: └ Completed in 0.28s
[94m➤[39m YN0000: Done in 6.69s
at ChildProcess.exithandler (child_process.js:295:12)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
await yarn(`dlx`, `create-react-app`, `test`)
process.chdir(path.resolve(process.cwd(), 'test'));
(ref: https://github.com/yarnpkg/berry/issues/689#issue-549324764)
Would be nice to have a Sherlock playground ... not sure how to do that though 🤔
Would be nice to have a Sherlock playground ... not sure how to do that though 🤔
I'm really struggling with this sherlock thing here. A playground would be nice. Probably a more detailed documentation could also help.
The reproduction case in your issue seems broken (ie it neither pass nor fail due to throwing an unmanaged exception):
ReferenceError: path is not defined
at module.exports (evalmachine.<anonymous>:5:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:56:13
at async executeInTempDirectory (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:17:16)
at async Object.executeRepro (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:24:12)
at async ExecCommand.execute (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/commands/exec.js:25:38)
at async ExecCommand.validateAndExecute (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Command.js:161:26)
at async Cli.run (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Cli.js:74:24)
at async Cli.runExit (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Cli.js:83:28)
Remember: any non-Jest exceptions will cause the test to be reported as broken. If you expect something to pass without throwing, you must wrap it into something like await expect(...).resolves.toBeTruthy(). If you instead expect something to throw, you need to wrap it into await expect(...).rejects.toThrow().
Note that you can work on the repro locally - it's a bit faster to iterate:
https://yarnpkg.com/advanced/sherlock#can-i-develop-my-reproduction-offline
This issue reproduces on master:
Error: expect(received).rejects.not.toThrow()
Received promise resolved instead of rejected
Resolved to value: "Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
39.93 KB build/static/js/2.1f07b838.chunk.js
770 B build/static/js/runtime-main.b09effc8.js
605 B build/static/js/main.58d0d6e1.chunk.js
547 B build/static/css/main.d1b05096.chunk.css
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:
\"homepage\" : \"http://myname.github.io/myapp\",
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
bit.ly/CRA-deploy
"
at expect (/github/workspace/.yarn/cache/expect-npm-24.8.0-8c7640c562-1.zip/node_modules/expect/build/index.js:138:15)
at module.exports (evalmachine.<anonymous>:37:7)
at async /github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:56:13
at async executeInTempDirectory (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:17:16)
at async Object.executeRepro (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:24:12)
at async ExecCommand.execute (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-1.0.38-d4f5e2dbf3-1.zip/node_modules/@arcanis/sherlock/lib/commands/exec.js:25:38)
at async ExecCommand.validateAndExecute (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Command.js:161:26)
at async Cli.run (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Cli.js:74:24)
at async Cli.runExit (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-1.zip/node_modules/clipanion/lib/advanced/Cli.js:83:28)
Would be nice to have a Sherlock playground ... not sure how to do that though 🤔
off-topic?: What about something like this CodeSandbox template?
I just ran into this issue with one of my projects and see this is closed now. Was there a solution found?
There was no valid reproduction (the last one published was bogus), so hard to say. Open a new issue with a repro if needed.
Ok, referencing https://github.com/facebook/create-react-app/issues/7996 and https://next.yarnpkg.com/advanced/migration#dont-use-resolvealiasmodules-webpack-or-modulenamemapper-jest for anyone else stumbling here in the meantime
Most helpful comment
Would be nice to have a Sherlock playground ... not sure how to do that though 🤔