I am trying to install a fresh version of Laravel on DO’s 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)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!