Installing Laravel on App Platform
I am trying to install a fresh version of Laravel on DO’s App Platform.
- Created a Fresh Project Locally
- Pushed the Code to Git Repo
- Connect Git Repo with App Platform
However, the build is failing.
I am new to laravel, but why is there a dependency on node here?
dotest | 09:27:27 => Building app dotest | 09:27:27 dotest | 09:27:27 ---> Node.js Buildpack dotest | 09:27:27 ---> Installing toolbox dotest | 09:27:27 ---> - jq dotest | 09:27:29 ---> - yj dotest | 09:27:31 ---> Getting Node version dotest | 09:27:31 ---> Resolving Node version dotest | 09:27:36 ---> Downloading and extracting Node v12.21.0 dotest | 09:27:54 ---> Parsing package.json dotest | 09:27:56 ---> No file to start server dotest | 09:27:56 ---> either use 'docker run' to start container or add index.js or server.js dotest | 09:27:56 Installing node_modules using npm (from package-lock.json) dotest | 09:27:59 npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again. dotest | 09:27:59 dotest | 09:27:59 npm ERR! A complete log of this run can be found in: dotest | 09:27:59 npm ERR! /home/apps/.npm/_logs/2021-03-21T03_57_59_068Z-debug.log dotest | 09:27:59 unable to invoke layer creator dotest | 09:27:59 installing node_modules: exit status 1 dotest | 09:27:59 ERROR: failed to build: exit status 1 dotest | 09:27:59 ! Build failed (145)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×