sim*_*zzi 7 python linux npm atom-editor
我正在尝试将 atom 编辑器设置为在 linux 上进行 python 开发的 ide,并且我已经安装了以下软件包:
Community Packages (14) [home path]/.atom/packages
??? Hydrogen@2.14.1
??? atom-file-icons@0.7.1
??? atom-ide-ui@0.13.0
??? atom-material-syntax-light@0.4.6
??? autocomplete-python@1.16.0
??? busy-signal@2.0.1
??? hydrogen-python@0.0.8
??? ide-python@1.5.0
??? intentions@1.1.5
??? linter@2.3.1 (disabled)
??? linter-flake8@2.4.0
??? linter-ui-default@1.8.1
??? minimap@4.29.9
??? python-autopep8@0.1.3
Run Code Online (Sandbox Code Playgroud)
当我尝试从“查看 --> 终端 --> 启动新终端”启动终端时,出现以下错误:
For more info check out the docs: https://nuclide.io/docs/features/terminal
Error starting process:
Error: Cannot find module '[home path]/.atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/build/pty-node-v69-linux-x64/pty.node'
Run Code Online (Sandbox Code Playgroud)
我搜索了错误,我认为这是版本不匹配。
经过大量搜索但一无所获,我尝试创建该文件夹并从“pty-node-v57-linux-x64”复制“pty.node”,但终端仍然失败并返回错误:
For more info check out the docs: https://nuclide.io/docs/features/terminal
Error starting process:
Error: The module '[home path]/.atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/build/pty-node-v69-linux-x64/pty.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
Run Code Online (Sandbox Code Playgroud)
所以我搜索并尝试了一些随机的东西,比如:
$ cd [home path].atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/build
$ node -p process.versions.modules
57
$ npm install
npm ERR! Linux 5.3.0-40-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! pty@0.0.0 prepublish: `npm run tsc && cp src/index.js.flow lib/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pty@0.0.0 prepublish script 'npm run tsc && cp src/index.js.flow lib/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run tsc && cp src/index.js.flow lib/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pty
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pty
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! [home path].atom/packages/atom-ide-ui/node_modules/nuclide-prebuilt-libs/pty/build/npm-debug.log
Run Code Online (Sandbox Code Playgroud)
和其他无用的东西。
我对 npm 完全陌生,所以我不知道如何正确解释这些输出。
任何想法来解决这个问题?或者任何将 atom 设置为 python ide 的替代包?
我有同样的问题。这是我的环境:
\n\xe2\x9d\xaf apm -v \napm 2.5.2\nnpm 6.14.8\nnode 12.4.0 x64\natom 1.54.0\npython \ngit 2.27.0\nRun Code Online (Sandbox Code Playgroud)\n因此,我去~/.atom/packages/atom-ide-ui查看了该package.json文件,发现atom-ide-ui正在使用nuclide-prebuilt-libs@0.5.2. 因此,我安装了最新版本的nuclide-prebuilt-libs,在撰写本文时,它是0.6.3:
\xe2\x9d\xaf npm install nuclide-prebuilt-libs@0.6.3\nRun Code Online (Sandbox Code Playgroud)\n之后,打开终端 ( ctrl+shift+t) 就可以了。
| 归档时间: |
|
| 查看次数: |
1686 次 |
| 最近记录: |