Skip to content
New issue

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

报错处理之 -- 关于polyfills.ts、'es5-shim'、'es6-shim' #31

Open
deepthan opened this issue Feb 26, 2018 · 0 comments
Open

报错处理之 -- 关于polyfills.ts、'es5-shim'、'es6-shim' #31

deepthan opened this issue Feb 26, 2018 · 0 comments

Comments

@deepthan
Copy link
Owner

  • 服务器上启动项目报了polyfills.ts、'es5-shim'、'es6-shim'相关的错

�[1m�[31mERROR in ./src/polyfills.ts
Module not found: Error: Can't resolve 'es5-shim' in '/root/.jenkins/workspace/Platform-Service-StaticResource/src'
 @ ./src/polyfills.ts 2:0-18
 @ multi ./src/polyfills.ts�[39m�[22m

�[1m�[31mERROR in ./src/polyfills.ts
Module not found: Error: Can't resolve 'es6-shim' in '/root/.jenkins/workspace/Platform-Service-StaticResource/src'
 @ ./src/polyfills.ts 3:0-18
 @ multi ./src/polyfills.ts�[39m�[22m
Build step 'Execute shell' marked build as failure
Finished: FAILURE
  • 解决办法:升级@angular/cli

npm uninstall -g @angular/cli
npm uninstall --save-dev @angular/cli
npm cache clean
npm install -g @angular/cli@latest
npm install --save -dev @angular/cli@latest

强制清除缓存

npm cache clean --force

或者

npm cache verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant