We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preinstall script fails installation. npm install -g @exxeta/openapi-cop results in:
npm install -g @exxeta/openapi-cop
> @exxeta/[email protected] preinstall:development /home/allu/.nvm/versions/node/v10.24.1/lib/node_modules/@exxeta/openapi-cop > cd mock-server && npm install sh: line 1: cd: mock-server: No such file or directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @exxeta/[email protected] preinstall:development: `cd mock-server && npm install` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @exxeta/[email protected] preinstall:development script.
Since per-env defaults NODE_ENV to "development", the "preinstall:development" script is executed, which tries to install the mock server.
per-env
(test -d mock-server && cd mock-server && npm install) || true
The text was updated successfully, but these errors were encountered:
Work around installation of dependencies of mock-server in non-local …
bfcc9b7
…environments (#398)
Successfully merging a pull request may close this issue.
Problem
Preinstall script fails installation.
npm install -g @exxeta/openapi-cop
results in:Reason
Since
per-env
defaults NODE_ENV to "development", the "preinstall:development" script is executed, which tries to install the mock server.Workaround solution
(test -d mock-server && cd mock-server && npm install) || true
to be more forgiving.Proposed solution
This would remove the necessity to install the dependencies of mock-server altogether.
The text was updated successfully, but these errors were encountered: