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 //github.com/glavin001/atom-beautify#beautifi hoặc truy cập //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: //github.com/glavin001/atom-beautify/issues/2107

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

Đâ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ỏ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

Đã 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 //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 [//babeljs.io/docs/en/babel-polyfill] for more information.
npm WARN deprecated : core-js@

Bài Viết Liên Quan

Chủ Đề