Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix: Handle error when running init without npm (#9169)
Modify fetchPeerDependencies() function in npm-util to retun null if the npm process exited with an ENOENT error. Modify installSyncSaveDev() function in npm-util to log an error message if the npm process exited with an ENOENT error. Write new tests for fetchPeerDependencies() and installSyncSaveDev() to cover these scenarios. Modify the sync stub in other installSyncSaveDev() tests to return an object more similar to the child_process object specified in the node.js docs, to avoid undefined field errors.
- Loading branch information
1 parent
4b94c6c
commit af4ad60
Showing
3 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters