Angular 和 NPM 问题
Angular and NPM issue
我目前正在学习 angular 9,所以当我尝试使用最新版本 node version 12.*
和 npm version 6.14.*
安装节点 js 和 npm 时。我遇到 ng new
和 npm install command
的问题
问题如下:
sudo npm install
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...ure":"-----BEGIN PGP '
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frustrated_coder/.npm/_logs/2020-03-29T14_31_40_275Z-debug.log
ng 新 angular-测试
Installing packages...npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...200772","tarball":"ht'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frustrated_coder/.npm/_logs/2020-03-29T14_20_56_952Z-debug.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.
我也在研究 angular-electron,但大部分问题也是由于其中的 npm install 命令。
这是我克隆 angular 电子的 https://github.com/maximegris/angular-electron
url。
使用 Windows Powershell 作为管理员并且 运行;
npm cache clean --force
npm install -g @angular/cli
我目前正在学习 angular 9,所以当我尝试使用最新版本 node version 12.*
和 npm version 6.14.*
安装节点 js 和 npm 时。我遇到 ng new
和 npm install command
的问题
问题如下:
sudo npm install
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...ure":"-----BEGIN PGP '
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frustrated_coder/.npm/_logs/2020-03-29T14_31_40_275Z-debug.log
ng 新 angular-测试
Installing packages...npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...200772","tarball":"ht'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frustrated_coder/.npm/_logs/2020-03-29T14_20_56_952Z-debug.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.
我也在研究 angular-electron,但大部分问题也是由于其中的 npm install 命令。
这是我克隆 angular 电子的 https://github.com/maximegris/angular-electron
url。
使用 Windows Powershell 作为管理员并且 运行;
npm cache clean --force
npm install -g @angular/cli