Hướng dẫn could not find php the program may not be installed atom beautify? - không thể tìm thấy php chương trình có thể chưa được cài đặt nguyên tử làm đẹp?

Xem Hướng dẫn cài đặt PHP tại https://github.com/glavin001/atom-beautify#beautifi hoặc truy cập http://php.net/manual/en/install.php Bạn có thể định cấu hình làm đẹp với đường dẫn tuyệt đối đến 'PHP 'bằng cách cài đặt' thực thi - PHP - đường dẫn 'trong cài đặt gói Atom Beautify. Chương trình của bạn được cài đặt đúng cách nếu chạy 'where.exe PHP' Trong lời nhắc CMD của bạn trả về một đường dẫn tuyệt đối đến thực thi.
You can configure Atom Beautify with the absolute path to 'php' by setting 'Executable - PHP - Path' in the Atom Beautify package settings.
Your program is properly installed if running 'where.exe php' in your CMD prompt returns an absolute path to the executable.

Lỗi: Không thể tìm thấy 'PHP'. Chương trình có thể không được cài đặt. tại function.executable.commandnotfounderror (tệp: /// c: /users/dokolko-pc/.atom/packages : /// c: /Users/dokolko-pc/.atom/packages/atom-beautify/src/beautifiers/executable.coffee: 269: 18) tại tập tin: /// c:/user/dokolko-com/. ATOM/PACKAGES/ATOM-BEAUTIFY/SRC/BEADIFIERS/Executable.Coffee: 197: 22 tại trycatcher (c: \ user \ dokolko-pc.atom \ gói \ atom-beautify : 16: 23) Tại Promise._SetTlePromiseFromHandler (C: \ Users \ Dokolko-pc.atom \ Packages \ Atom-beautify \ node_modules \ bluebird \ js \ releM \ Users \ dokolko-pc.atom \ packages \ atom-beautify \ node_modules \ bluebird \ js \ release \ Promise.js: 569: 18) -Beautify \ node_modules \ bluebird \ js \ release S \ release \ Promise.js: 690: 18) tại _drainqueuestep (c: \ users \ dokolko-pc.atom \ packages \ atom-beautify \ node_modules \ bluebird \ js . các gói \ nguyên tử-beautify \ node_modules \ bluebird \ js \ release \ async.js: 147: 5) tại async.drainqueues Phát hành \ async.js: 17: 14) Tại AT Process._TickCallback (Internal/Process/next_tick.js: 188: 7)
at Function.Executable.commandNotFoundError (file:///C:/Users/Dokolko-pc/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:277:10)
at HybridExecutable.Executable.commandNotFoundError (file:///C:/Users/Dokolko-pc/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:269:18)
at file:///C:/Users/Dokolko-pc/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:197:22
at tryCatcher (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\promise.js:690:18)
at _drainQueueStep (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:138:12)
at _drainQueue (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:131:9)
at Async._drainQueues (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:147:5)
at Async.drainQueues (C:\Users\Dokolko-pc.atom\packages\atom-beautify\node_modules\bluebird\js\release\async.js:17:14)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

Tôi đã cài đặt phiên bản 0,33.1

2018-03-23T15:44:10.222Z - debug: [] spawn done 255  
Fatal error: Default value for parameters with a class type hint can only be NULL in /usr/local/Cellar/php-cs-fixer/2.10.0/vendor/symfony/console/Application.php on line 83

2018-03-23T15:44:10.222Z - verbose: [] spawn result, returnCode 255
2018-03-23T15:44:10.222Z - verbose: [] spawn result, stdout 
Fatal error: Default value for parameters with a class type hint can only be NULL in /usr/local/Cellar/php-cs-fixer/2.10.0/vendor/symfony/console/Application.php on line 83

Đã hỏi 4 năm, 4 tháng trước 4 years, 4 months ago

Đã xem 2k lần 2k times

Trước hết là tiếng Nhật và tiếng Anh của tôi đôi khi thật kỳ lạ.

Tình huống của tôi rất giống như được tìm thấy trong URL này: https://github.com/glavin001/atom-beautify/issues/2107

Ý tôi là tình huống tương tự như "Musayazlik".

Hướng dẫn could not find php the program may not be installed atom beautify? - không thể tìm thấy php chương trình có thể chưa được cài đặt nguyên tử làm đẹp?

Đây là trên Windows 10: Tôi đã cài đặt "Php-CS-Fixer" và tất nhiên là "Atom Beautify".
I installed "php-cs-fixer" and of course "Atom beautify".

Không có thông báo lỗi và không hoạt động.

Không có giải pháp?

Tôi đặt "C: \ xampp \ php" để thực thi ▶ ︎php

Đặt "C: \ xampp \ php-cs-fixer" để thực thi ▶ ︎php-cs-fixer

Tôi thực sự không có ý tưởng.

Hướng dẫn could not find php the program may not be installed atom beautify? - không thể tìm thấy php chương trình có thể chưa được cài đặt nguyên tử làm đẹp?

Hỏi ngày 30 tháng 7 năm 2018 lúc 13:10Jul 30, 2018 at 13:10

0

Bạn phải đặt các đường dẫn đúng đến các thực thi tệp. & Nbsp; Bạn & nbsp; đang thiếu thư mục \ php \.\PHP\ folder.

C:\xampp\php\php.exe

C:\xampp\php\php-cs-fixer(full name of file).phar

Hướng dẫn could not find php the program may not be installed atom beautify? - không thể tìm thấy php chương trình có thể chưa được cài đặt nguyên tử làm đẹp?

Đã trả lời ngày 7 tháng 2 năm 2019 lúc 13:34Feb 7, 2019 at 13:34

Tôi đang sử dụng Ubuntu 18.04, tôi đang cố gắng cài đặt gói Atom-Beautify trong trình chỉnh sửa văn bản nguyên tử, nhưng đối mặt với một lỗi như được hiển thị bên dưới

npm WARN deprecated : Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated : This package is now published under @cucumber/gherkin
npm WARN deprecated : Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated : please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated : Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated : Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @babel/: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated : core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated : Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated : CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated : No longer maintained. We recomment migrating to ESLint with eslint-config-wikimedia.
npm WARN deprecated : Package no longer supported. Contact  for more info.
npm WARN deprecated : CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated : request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated : this library is no longer supported
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-202296-6751-11jor7u.3sna/package.json'
npm WARN apm-install-dir-202296-6751-11jor7u.3sna No description
npm WARN apm-install-dir-202296-6751-11jor7u.3sna No repository field.
npm WARN apm-install-dir-202296-6751-11jor7u.3sna No README data
npm WARN apm-install-dir-202296-6751-11jor7u.3sna No license field.

npm ERR! code E500
npm ERR! 500 Internal Server Error - GET https://www.atom.io/api/packages/atom-beautify/versions/0.33.4/tarball

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.atom/.apm/_logs/2022-10-06T05_00_54_152Z-debug.log

Tôi đã làm theo một phương pháp trong một trong những câu hỏi đã hỏi trước đó

CD /home/your_username/.atom/.apm/marko

LN -S 4.13.4 4.13.3

APM Cài đặt Atom-Beautify

Nhưng ở bước đầu tiên, tôi gặp lỗi là "Bash: CD: /home/username/.atom/.apm/marko: Không có tệp hoặc thư mục đó"

Có cách nào để cài đặt nguyên tử-beautify không? Tôi cần giúp đỡ để làm điều này.