Восстановление после неправильного обновления npm - PullRequest
0 голосов
/ 19 ноября 2018

Здравствуйте, я разрабатываю приложение Angular 7, и я по ошибке нажал npm update. После этой команды мое приложение начало аварийно завершать работу с кучей конфликтов и не найденных модулей в npm modules.

Что я могусделать, чтобы решить это?

**Errors**ERROR in ./node_modules/saucelabs/index.js
Module not found: Error: Can't resolve './lib-cov/SauceLabs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\saucelabs'
ERROR in ./node_modules/protractor/built/runner.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built'
ERROR in ./node_modules/protractor/built/bpRunner.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built'
ERROR in ./node_modules/protractor/built/debugger.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built'
ERROR in ./node_modules/selenium-webdriver/firefox/binary.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\selenium-webdriver\firefox'
ERROR in ./node_modules/selenium-webdriver/io/exec.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\selenium-webdriver\io'
ERROR in ./node_modules/selenium-webdriver/net/portprober.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\selenium-webdriver\net'
ERROR in ./node_modules/saucelabs/lib/SauceLabs.js
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\saucelabs\lib'
ERROR in ./node_modules/selenium-webdriver/node_modules/tmp/lib/tmp.js
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\selenium-webdriver\node_modules\tmp\lib'
ERROR in ./node_modules/blocking-proxy/built/lib/webdriver_logger.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\blocking-proxy\built\lib'
ERROR in ./node_modules/fs.realpath/old.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\fs.realpath'
ERROR in ./node_modules/fs.realpath/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\fs.realpath'
ERROR in ./node_modules/glob/glob.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\glob'
ERROR in ./node_modules/glob/sync.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\glob'
ERROR in ./node_modules/protractor/built/logger.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built'ERROR in ./node_modules/protractor/built/driverProviders/direct.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built\driverProviders'
ERROR in ./node_modules/protractor/built/driverProviders/local.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\built\driverProviders'
ERROR in ./node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/logger.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\protractor\node_modules\webdriver-manager\built\lib\cli'
ERROR in ./node_modules/rimraf/rimraf.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\rimraf'
ERROR in ./node_modules/selenium-webdriver/phantomjs.js
Module not found: Error: Can't resolve 'fs' in 'C:\Users\adr\Desktop\JS\TsQuickie\quickapp\node_modules\selenium-webdriver'

И список можно продолжить. Что я могу сделать

...