您好,我正在开发一个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'
列表继续。我该怎么办