当我尝试npm安装新软件包时,它会向我显示以下错误:
rollbackFailedOptional:动词npm-session dcdf458f5e794f1
nodejs- version:
v8.9.1
npm -version:
5.5.1
答案 0 :(得分:0)
以管理员身份打开cmd,然后写:
npm install -g @angular/cli
答案 1 :(得分:-1)
如果你想更新angular / cli(见https://github.com/angular/angular-cli)
npm uninstall -g @angular/cli
npm cache clean
# if npm version is > 5 then use `npm cache verify` to avoid errors (or to avoid using --force)
npm install -g @angular/cli@latest