Build: Error when installing dependencies and there is no `package.json`

Created on 30 Apr 2020  路  7Comments  路  Source: netlify/build

Dependencies of Netlify Functions and local plugins are automatically installed. Same with plugins automatic installs. However when the repository has no package.json, this creates the following error:

npm ERR! code ENOLOCAL
npm ERR! Could not install from "../my/plugin" as it does not contain a package.json file.

This might also be an issue for missing plugins, which assume there is a package.json.

bug

All 7 comments

This issue has been linked to an error in Bugsnag
dependencies in Packages installation

Experiencing a similar issue when using a Jekyll project with a local plugin that I've set up to demo my plugin https://github.com/daviddarnes/netlify-plugin-ghost-markdown

This issue has been linked to an error in Bugsnag
dependencies in Packages installation

An error linked to this issue has been marked as fixed in Bugsnag
dependencies in Packages installation

An error linked to this issue has been marked as fixed in Bugsnag
dependencies in Packages installation

This bug has been fixed.
To automatically install dependencies in a local plugin, either this plugin or the repository must have a package.json.

Was this page helpful?
0 / 5 - 0 ratings