角度通用-运行node.js时发出警告

角度通用-运行node.js时发出警告,node.js,angular,node-modules,angular-universal,Node.js,Angular,Node Modules,Angular Universal,我有angular 7站点-我已经将其转换为服务器端渲染(主要指) 我正在AWS上运行使用“Forever”的站点。我总是在我以前的错误日志文件中看到以下错误: (node:23488) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.

我有angular 7站点-我已经将其转换为服务器端渲染(主要指)

我正在AWS上运行使用“Forever”的站点。我总是在我以前的错误日志文件中看到以下错误:

(node:23488) [DEP0005] DeprecationWarning: Buffer() is deprecated due to 
security and usability issues. Please use the Buffer.alloc(), 
Buffer.allocUnsafe(), or Buffer.from() methods instead.
我在代码中没有使用任何类型的缓冲区,所以我猜它可能来自我正在使用的节点模块。从上面的日志消息中,我无法检测哪个模块有问题

我当前的package.json如下所示:

"dependencies": {
  "@angular/animations": "^7.0.0",
  "@angular/common": "^7.0.0",
  "@angular/compiler": "^7.0.0",
  "@angular/core": "^7.0.0",
  "@angular/forms": "^7.0.0",
  "@angular/http": "^7.0.0",
  "@angular/platform-browser": "^7.0.0",
  "@angular/platform-browser-dynamic": "^7.0.0",
  "@angular/platform-server": "^7.0.0",
  "@angular/router": "^7.0.0",
  "@nguniversal/express-engine": "^7.0.2",
  "@nguniversal/module-map-ngfactory-loader": "^7.0.2",
  "bootstrap": "^3.4.0",
  "chart.js": "^2.7.3",
  "core-js": "^2.6.1",
  "express": "^4.16.2",
  "font-awesome": "^4.7.0",
  "fullcalendar": "^3.9.0",
  "he": "^1.2.0",
  "jquery": "^3.3.1",
  "jw-angular-social-buttons": "^1.0.0",
  "moment": "^2.23.0",
  "ng2-validation": "^4.2.0",
  "primeicons": "^1.0.0",
  "primeng": "^6.1.7",
  "prismjs": "^1.15.0",
  "rxjs": "~6.3.3",
  "ts-loader": "^5.3.2",
  "webpack": "^4.28.3",
  "webpack-cli": "^3.1.2",
  "webpack-dev-server": "^3.1.14",
  "zone.js": "~0.8.26"
} 
有没有办法获取更多日志?我现在可以忽略此错误消息吗

提前谢谢

编辑- My package.json包含以下内容:

"build-both": "ng build --prod --output-path=dist/browser && ng run 
ecokrypt-uiapp:server --configuration=publiclocal 
--output-path=dist/server",
"webpack-server": "webpack --config webpack.server.config.js 
--ouput dist/server.js --progress --colors",
"build-and-pack": "npm run build-both && npm run webpack-server",
当我构建应用程序时(npm运行build and pack):我在控制台中看到以下内容:我看到2条与某些系统相关的警告。Import()


迟回答比不回答好

这是webpack cli使用的旧包xhr2,有一个


要解决此问题,请遵循该步骤上的建议:
npm i xhr2--save

能否添加完整的生成日志?在问题中添加了生成日志。您是否解决了此问题?我相信是在角科里诺,我仍然看到同样的错误。唯一的问题是我的网站是工作良好,所以并没有费心去挖它忽略它!其中一个依赖项应根据以下提示更新其代码库:
> ecokrypt-uiapp@0.0.0 build-and-pack 
/Users/manisha/projects/ecokrypt/repos/ecokrypt-uiapp
> npm run build-both && npm run webpack-server


> ecokrypt-uiapp@0.0.0 build-both 
/Users/manisha/projects/ecokrypt/repos/ecokrypt-uiapp
> ng build --prod --output-path=dist/browser && ng run ecokrypt-uiapp:server 
--configuration=publiclocal --output-path=dist/server


Date: 2019-01-22T06:03:27.567Z
Hash: 6cdc328f7a5e6deddab8
Time: 74400ms
chunk {scripts} scripts.121b013aaa5e9461a940.js (scripts) 632 kB  [rendered]
chunk {0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.41 kB [entry] 
 [rendered]
chunk {1} main.1c45daaf038705b9a051.js (main) 2.27 MB [initial] [rendered]
chunk {2} polyfills.8b3031f6891125c33792.js (polyfills) 58.2 kB [initial] 
 [rendered]
chunk {3} styles.64324cbe6f1a4899818f.css (styles) 325 kB [initial] 
 [rendered]

Date: 2019-01-22T06:03:52.985Z
Hash: 103ec2f268f0c9fbf2a1
Time: 22538ms
chunk {main} main.js, main.js.map (main) 2.75 MB [entry] [rendered]

> ecokrypt-uiapp@0.0.0 webpack-server 
/Users/manisha/projects/ecokrypt/repos/ecokrypt-uiapp
> webpack --config webpack.server.config.js --ouput dist/server.js --progress 
 --colors

Hash: 8961a2409cb304bef9ec
Version: webpack 4.28.3
Time: 11323ms
Built at: 2019-01-22 11:34:05
    Asset      Size  Chunks             Chunk Names
server.js  9.82 MiB  server  [emitted]  server
Entrypoint server = server.js
[./dist/server/main.js] 2.75 MiB {server} [built]
[./server.ts] 1.93 KiB {server} [built]
[./src lazy recursive] ./src lazy namespace object 160 bytes {server} [built]
[./src sync recursive] ./src sync 160 bytes {server} [built]
[buffer] external "buffer" 42 bytes {server} [built]
[crypto] external "crypto" 42 bytes {server} [built]
[events] external "events" 42 bytes {server} [built]
[fs] external "fs" 42 bytes {server} [built]
[http] external "http" 42 bytes {server} [built]
[https] external "https" 42 bytes {server} [built]
[net] external "net" 42 bytes {server} [built]
[os] external "os" 42 bytes {server} [built]
[path] external "path" 42 bytes {server} [built]
[timers] external "timers" 42 bytes {server} [optional] [built]
[url] external "url" 42 bytes {server} [built]
    + 587 hidden modules

 WARNING in ./node_modules/@angular/core/fesm5/core.js 17170:15-36
 System.import() is deprecated and will be removed soon. Use import() 
instead.
For more info visit https://webpack.js.org/guides/code-splitting/
 @ ./server.ts 6:13-37

WARNING in ./node_modules/@angular/core/fesm5/core.js 17182:15-102
System.import() is deprecated and will be removed soon. Use import() instead.
For more info visit https://webpack.js.org/guides/code-splitting/
 @ ./server.ts 6:13-37