- Plesk for Linux
Installing Node.js application dependencies in Plesk in Domains > example.com > Node.js > NPM install ends with one or few warnings like the below one:
PLESK_INFO: npm WARN firstname.lastname@example.org requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
Expected behavior - the automatic installation of the peer dependencies was removed in npm 3.
Use one of the solutions:
Connect to the server using SSH under the subscription's system user.
Manually install the required peer dependencies:
# npm install --save-dev ajv
XXis the Node.js version.
ajvwith the name of the dependency from the warning message.
Add all required peer dependencies into your application's file package.json in Domains > example.com > File Manager.
Click NPM install in Domains > example.com > Node.js once again.
Note: If the file package.json is a part of a third-party application, please contact the application developers so they fix the content of package.json.
Please sign in to leave a comment.