ymm-tech / gods-pen-server Goto Github PK
View Code? Open in Web Editor NEW码良服务端项目
License: MIT License
码良服务端项目
License: MIT License
如题, 在团队内部私有部署, 访问量并不大, 没有docker/es/oss/mail/这些需求, 是否有开关把这些功能屏蔽掉?
$ 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"两次。
错误与 #18 相关。
$ gods-pen-serve start
请确保已对项目进行了必要配置
> [email protected] dev /home/boyy/sandbox/gods-pen-admin
> cross-env CODE_ENV=local vue-cli-service serve
> [email protected] dev /home/boyy/sandbox/gods-pen-server
> cross-env EGG_SERVER_ENV=dev egg-bin dev --port 7051
> [email protected] client:dev /home/boyy/sandbox/gods-pen
> cross-env CODE_ENV=local PAGE=CLIENT vue-cli-service serve
> [email protected] editor:dev /home/boyy/sandbox/gods-pen
> cross-env CODE_ENV=local PAGE=EDITOR vue-cli-service serve
sh: 1: cross-env: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] dev: `cross-env EGG_SERVER_ENV=dev egg-bin dev --port 7051`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.