我无法创建新的质子应用程序。
命令
$ create-proton-app new-App
给出以下输出:
Creating a new Proton Native app on /home/xxxxx/new-App
Installing packages... This may take a few minutes.
...
An error ocurred:
npm install has failed.
===========================================
Additional relevant Info:-
---System SolusOS----
xxx@xxxxxx-pc ~ $ uname -a
Linux xxxxxx-pc 4.17.2-78.current #1 SMP PREEMPT Sun Jun 24 18:21:56 UTC 2018 x86_64 GNU/Linux
---libisl.so----
xxx@xxxxxx-pc ~ $ ls -al /usr/lib/libisl.so*
lrwxrwxrwx 1 root root 16 Sep 1 22:50 /usr/lib/libisl.so.19 -> libisl.so.19.1.0
-rwxr-xr-x 1 root root 1673936 Aug 20 08:35 /usr/lib/libisl.so.19.1.0
-rw-r--r-- 1 root root 2891 Aug 20 08:35 /usr/lib/libisl.so.19.1.0-gdb.py
===========================================
看起来 proton 想要的 libisl 版本和已经安装的版本产生了问题。是这样吗。我该如何解决我的问题?
我也遇到了类似的问题。我所做的是遵循手动安装程序,如下所示:
1。安装质子本机
npm i -S proton-native
2。安装第 3 方依赖项
npm install --save-dev babel-cli babel-preset-env babel-preset-stage-0 babel-preset-react
3.配置.babelrc*
{
"presets": [
"env",
"stage-0",
"react"
]
}
4。添加启动脚本到
package.json
...
"scripts": {
"start": "babel-node index.js",
"build": "babel index.js -d bin/",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
...
尝试一下,一切都改变了: https://proton-native.js.org/#/quickstart
# install the cli app
npx proton-native-cli init my-app
# move to your project directory
cd my-app
npm install
# run your app
npm run start
# OR to run with hot reloading
npm run dev