Skip to content
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

yarn dev 报错 #18

Open
BoyyM opened this issue Jun 13, 2021 · 0 comments
Open

yarn dev 报错 #18

BoyyM opened this issue Jun 13, 2021 · 0 comments

Comments

@BoyyM
Copy link

BoyyM commented Jun 13, 2021

$ pwd
/home/.../gods-pen-server
$ yarn dev
yarn run v1.22.10
$ cross-env EGG_SERVER_ENV=dev egg-bin dev --port 7051
/bin/sh: 1: cross-env: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

这个项目的package.json没有包含"cross-env"。

项目gods-pen中的package.json包含:

  "devDependencies": {
    ...
    "cross-env": "^5.2.0",

项目gods-pen-cli中的package.json.ejs包含:

  "devDependencies": {
    ...
    "cross-env": "^5.0.5",

项目gods-pen-admin中的package.json包含了"cross-env"两次。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant