關於Electron的安裝

2021-08-08 20:00:51 字數 508 閱讀 9643

根據知乎一篇文章提示試用npm install

-gelectron

-prebuilt,錯誤提示electron-prebuilt已經改名為electron,重新使用命令 npm install -g electron

還是不成功一直提示 npm err! argv "c:\\program files\\nodejs\\node.exe" "c:\\program files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"

通過查詢資料說是npm官網容易抽風,我大**的映象時可用的,於是

npm install -g cnpm --registry=

cnpm install -g electron

問題解決。

全域性安裝electron

electron 需要node 環境了,所以前期需要安裝好node環境 然後測試 node v npm v 1 npm init 初始化出現package.json檔案 2 npm install g electron 安裝electron 3 npx electron v 檢視elctron是否安...

Electron安裝打包指南

當前環境debian linux deepin wget解壓,解壓後在當前盤多了個資料夾node v14.15.1 linux x64.可自行改名 sudo tar zxvf node v14.15.1 linux x64.tar.gz建立軟鏈結 sudo ln s 盤路徑 node v14.15....

Electron簡介和安裝使用

一 electron簡介 electron的應用,使得了js不僅僅可以bs端專案,還可以做cs端專案。另外今天之所以研究下electron,還是因為公司的需要,業務場景是,通過electron.js開發出的桌面應用讓客戶可以通過這個桌面應用管理裝置和資產,同時也可以監控對應的裝置狀態等等。傳統的ex...