Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
949 views
in Technique[技术] by (71.8m points)

yarnpkg - How to resolve this error : spawn yarn ENOENT?

Yarn Install successful:

C:UsersYaelDownloadsmetamask-extension-8.0.9metamask-extension-8.0.9>yarn
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 2.77s.

Yarn dist error:
C:UsersYaelDownloadsmetamask-extension-8.0.9metamask-extension-8.0.9>yarn dist yarn run v1.22.10 $ yarn build prod $ node development/build/index.js prod running task "prod"... Starting 'prod'... Starting 'clean'... (node:12548) ExperimentalWarning: The fs.promises API is experimental Finished 'clean' Starting 'styles:prod'... Finished 'styles:prod' Starting 'scripts:deps:background'... Starting 'scripts:deps:ui'... Starting 'scripts:core:prod:background'... Starting 'scripts:core:prod:ui'... Starting 'scripts:core:prod:phishing-detect'... Starting 'scripts:core:prod:contentscript'... Starting 'static:prod'... Starting 'manifest:prod'... events.js:174 throw er; // Unhandled 'error' event ^

Error: spawn yarn ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

C:UsersYaelDownloadsmetamask-extension-8.0.9metamask-extension-8.0.9>
 
question from:https://stackoverflow.com/questions/65843263/how-to-resolve-this-error-spawn-yarn-enoent

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...