簡體   English   中英

如何在 nodejs 上運行 angularjs 應用程序? 有錯誤

[英]How to run angularjs app on nodejs? Got error

我還在學習角度。 當我嘗試運行我的代碼時,我收到一條類似以下消息的錯誤:

> electron@4.0.7 postinstall C:\electron-quick-start\node_modules\electron
> node install.js

Downloading tmp-12340-0-electron-v4.0.7-win32-x64.zip
Error: read ECONNRESET
C:\electron-quick-start\node_modules\electron\install.js:49
  throw err
  ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@4.0.7 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@4.0.7 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2019-03-12T07_35_01_086Z-debug.log

我該如何解決?

使用此命令進行安裝:

npm install electron --save-dev

你也可以使用快速啟動電子js

您的 NodeJS 版本也很重要,請使用以下命令檢查您的節點版本:

node -v

請閱讀此文檔
電子文檔

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM