有人可以帮助将我的应用程序部署到heroku上吗,代码可以在这里找到:
https://github.com/b0bbybaldi/hippocrates
Heroku告诉我看下面的链接,但这不是很有帮助...
https://github.com/npm/npm/issues/7494
我一直在尝试整天更改.json包,但似乎没有任何效果,即使它在本地运行得很好,而且我仍然在以下有关依赖项问题的错误中看到错误消息...
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): v8.11.1
engines.npm (package.json): unspecified (use default)
engines.yarn (package.json): 1.7.0
Resolving node version v8.11.1...
Downloading and installing node 8.11.1...
Using default npm version: 5.6.0
Resolving yarn version 1.7.0...
Downloading and installing yarn (1.7.0)...
Installed yarn 1.7.0
-----> Restoring cache
Loading 2 from cacheDirectories (default):
- node_modules
- bower_components (not cached - skipping)
-----> Building dependencies
Running heroku-prebuild (yarn)
yarn run v1.7.0
$ cd client && yarn install
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 30.32s.
Installing node modules (yarn.lock)
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > react-bootstrap@0.32.1" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
warning " > react-bootstrap@0.32.1" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
warning "react-bootstrap > prop-types-extra@1.1.0" has unmet peer dependency "react@>=0.14.0".
warning "react-bootstrap > react-overlays@0.8.3" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
warning "react-bootstrap > react-overlays@0.8.3" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
warning "react-bootstrap > react-prop-types@0.4.0" has unmet peer dependency "react@>=0.14.0".
warning "react-bootstrap > react-transition-group@2.4.0" has unmet peer dependency "react@>=15.0.0".
warning "react-bootstrap > react-transition-group@2.4.0" has unmet peer dependency "react-dom@>=15.0.0".
warning "react-bootstrap > uncontrollable@4.1.0" has unmet peer dependency "react@>=0.11.0".
warning " > react-router-dom@4.3.1" has unmet peer dependency "react@>=15".
warning "react-router-dom > react-router@4.3.1" has unmet peer dependency "react@>=15".
warning " > recompose@0.26.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[4/4] Building fresh packages...
Done in 3.85s.
Running heroku-postbuild (yarn)
yarn run v1.7.0
$ node scripts/build.js
> login@0.1.0 build /tmp/build_05ea78b01ac233d426fddb05f3f82019/client
> react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
105.45 KB build/static/js/main.6de5e164.js
430 B build/static/css/main.51ce509b.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
Done in 20.46s.
-----> Caching build
Clearing previous node cache
Saving 2 cacheDirectories (default):
- node_modules
- bower_components (nothing to cache)
-----> Pruning devDependencies
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > react-bootstrap@0.32.1" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
warning " > react-bootstrap@0.32.1" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
warning "react-bootstrap > prop-types-extra@1.1.0" has unmet peer dependency "react@>=0.14.0".
warning "react-bootstrap > react-overlays@0.8.3" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
warning "react-bootstrap > react-overlays@0.8.3" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
warning "react-bootstrap > react-prop-types@0.4.0" has unmet peer dependency "react@>=0.14.0".
warning "react-bootstrap > react-transition-group@2.4.0" has unmet peer dependency "react@>=15.0.0".
warning "react-bootstrap > react-transition-group@2.4.0" has unmet peer dependency "react-dom@>=15.0.0".
warning "react-bootstrap > uncontrollable@4.1.0" has unmet peer dependency "react@>=0.11.0".
warning " > react-router-dom@4.3.1" has unmet peer dependency "react@>=15".
warning "react-router-dom > react-router@4.3.1" has unmet peer dependency "react@>=15".
warning " > recompose@0.26.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
Done in 1.92s.
-----> Build succeeded!
! Unmet dependencies don't fail yarn install but may cause runtime issues
https://github.com/npm/npm/issues/7494
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 53.8M
-----> Launching...
Released v13
https://ancient-dusk-89840.herokuapp.com/ deployed to Heroku