Closed Alfystar closed 7 months ago
@Alfystar Could you please post the output of the following two commands?
sf -v
echo "$NODE_TLS_REJECT_UNAUTHORIZED"
Here is my output for example:
@salesforce/cli/2.26.10 darwin-arm64 node-v20.10.0
Are you able to install other plugins? For example:
sf plugins install @julianduque/rest-api-plugin
Have you tried sf plugins reset
(uninstalling all custom plugins and resetting all core plugins)?
Hi @amtrack! In order of your question:
sf -v
echo "$NODE_TLS_REJECT_UNAUTHORIZED"
@salesforce/cli/2.26.10 darwin-arm64 node-v20.10.0
0
The is set NODE_TLS_REJECT_UNAUTHORIZED because in my company the VPN creates same problems with the certificate, the warning is "normal" here.
About the @julianduque plugin, the error is the same. Currently, I do not have any plugins, but try anyway reset command, but unfortunately, the result was the same.
I also try the command outside company network but notting 😒
This is the output of the error command after my directly execution
/Users/ea_enel/.local/share/sf/client/2.26.10-b796e35/node_modules/yarn/bin/yarn.js add sfdx-plugin-source-read@latest --non-interactive --mutex=file:/Users/ea_enel/.local/share/sf/yarn.lock --preferred-cache-folder=/Users/ea_enel/Library/Caches/sf/yarn --check-files
/Users/ea_enel/.local/share/sf/client/2.26.10-b796e35/node_modules/yarn/bin/yarn.js add sfdx-plugin-source-read@latest --non-interactive
--mutex=file:/Users/ea_enel/.local/share/sf/yarn.lock --preferred-cache-folder=/Users/ea_enel/Library/Caches/sf/yarn --check-files
yarn add v1.22.21
warning package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning enel_crmt_dev@1.0.0: No license field
[1/4] 🔍 Resolving packages...
⠁ (node:11280) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:11280) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
warning enel_crmt_dev@1.0.0: No license field
success Saved 285 new dependencies.
info Direct dependencies
├─ @prettier/plugin-xml@3.2.2
├─ prettier-plugin-apex@2.0.1
├─ prettier@3.2.5
└─ sfdx-plugin-source-read@1.2.0
info All dependencies
├─ @babel/runtime-corejs3@7.23.9
├─ @babel/runtime@7.23.9
├─ @hapi/topo@5.1.0
├─ @nodelib/fs.scandir@2.1.5
├─ @nodelib/fs.stat@2.0.5
├─ @nodelib/fs.walk@1.2.8
├─ @oclif/core@3.18.2
├─ @prettier/plugin-xml@3.2.2
├─ @salesforce/core@5.3.20
├─ @salesforce/kit@3.0.15
├─ @salesforce/schemas@1.6.1
├─ @salesforce/sf-plugins-core@4.0.0
├─ @salesforce/source-deploy-retrieve@9.7.28
├─ @sideway/address@4.1.5
├─ @sideway/formula@3.0.1
├─ @sideway/pinpoint@2.0.0
├─ @sindresorhus/is@4.6.0
├─ @szmarczak/http-timer@4.0.6
├─ @tootallnate/quickjs-emscripten@0.23.0
├─ @types/cacheable-request@6.0.3
├─ @types/cli-progress@3.11.5
├─ @types/http-cache-semantics@4.0.4
├─ @types/keyv@3.1.4
├─ @types/semver@7.5.6
├─ @xml-tools/parser@1.0.11
├─ ajv@8.12.0
├─ ansi-regex@5.0.1
├─ ansicolors@0.3.2
├─ argparse@1.0.10
├─ array-union@2.1.0
├─ asap@2.0.6
├─ ast-types@0.13.4
├─ astral-regex@2.0.0
├─ async@3.2.5
├─ asynckit@0.4.0
├─ axios@1.6.7
├─ base64url@3.0.1
├─ basic-ftp@5.0.4
├─ big-integer@1.6.52
├─ binary@0.3.0
├─ bl@4.1.0
├─ bluebird@3.4.7
├─ brace-expansion@1.1.11
├─ braces@3.0.2
├─ buffer-equal-constant-time@1.0.1
├─ buffer-indexof-polyfill@1.0.2
├─ buffer@5.7.1
├─ buffers@0.1.1
├─ cacheable-lookup@5.0.4
├─ cacheable-request@7.0.4
├─ camel-case@4.1.2
├─ cardinal@2.1.1
├─ chainsaw@0.1.0
├─ change-case@4.1.2
├─ chardet@0.7.0
├─ chevrotain@7.1.1
├─ clean-stack@3.0.1
├─ cli-progress@3.12.0
├─ cli-spinners@2.9.2
├─ clone-response@1.0.3
├─ clone@1.0.4
├─ color-name@1.1.4
├─ color-string@1.9.1
├─ color@4.2.3
├─ colorette@2.0.20
├─ combined-stream@1.0.8
├─ commander@4.1.1
├─ concat-map@0.0.1
├─ constant-case@3.0.4
├─ core-js-pure@3.35.1
├─ core-js@3.35.1
├─ core-util-is@1.0.3
├─ cross-spawn@7.0.3
├─ csprng@0.1.2
├─ csv-parse@4.16.3
├─ csv-stringify@5.6.5
├─ data-uri-to-buffer@6.0.1
├─ dateformat@4.6.3
├─ decompress-response@6.0.0
├─ defaults@1.0.4
├─ defer-to-connect@2.0.1
├─ degenerator@5.0.1
├─ delayed-stream@1.0.0
├─ detect-newline@3.1.0
├─ dir-glob@3.0.1
├─ duplexer2@0.1.4
├─ ecdsa-sig-formatter@1.0.11
├─ ejs@3.1.9
├─ emoji-regex@8.0.0
├─ end-of-stream@1.4.4
├─ escape-string-regexp@4.0.0
├─ escodegen@2.1.0
├─ esprima@4.0.1
├─ estraverse@5.3.0
├─ esutils@2.0.3
├─ event-target-shim@5.0.1
├─ events@3.3.0
├─ fast-copy@3.0.1
├─ fast-deep-equal@3.1.3
├─ fast-glob@3.3.2
├─ fast-levenshtein@3.0.0
├─ fast-redact@3.3.0
├─ fast-safe-stringify@2.1.1
├─ fast-xml-parser@4.3.4
├─ fastest-levenshtein@1.0.16
├─ fastq@1.17.0
├─ faye-websocket@0.11.4
├─ filelist@1.0.4
├─ fill-range@7.0.1
├─ follow-redirects@1.15.5
├─ fs.realpath@1.0.0
├─ fstream@1.0.12
├─ get-package-type@0.1.0
├─ get-stream@5.2.0
├─ get-uri@6.0.2
├─ glob-parent@5.1.2
├─ glob@7.2.3
├─ globby@11.1.0
├─ got@11.8.6
├─ graceful-fs@4.2.11
├─ header-case@2.0.4
├─ help-me@5.0.0
├─ http-cache-semantics@4.1.1
├─ http-parser-js@0.5.8
├─ http2-wrapper@1.0.3
├─ hyperlinker@1.0.0
├─ iconv-lite@0.4.24
├─ ieee754@1.2.1
├─ ignore@5.3.1
├─ immediate@3.0.6
├─ indent-string@4.0.0
├─ inflight@1.0.6
├─ inherits@2.0.4
├─ inquirer@8.2.6
├─ ip@1.1.8
├─ is-arrayish@0.3.2
├─ is-extglob@2.1.1
├─ is-glob@4.0.3
├─ is-interactive@1.0.0
├─ is-number@7.0.0
├─ is-wsl@2.2.0
├─ isarray@1.0.0
├─ isexe@2.0.0
├─ jake@10.8.7
├─ jest-docblock@29.7.0
├─ joi@17.12.1
├─ joycon@3.1.1
├─ js-yaml@3.14.1
├─ js2xmlparser@4.0.2
├─ jsforce@2.0.0-beta.29
├─ json-buffer@3.0.1
├─ json-schema-traverse@1.0.0
├─ jsonfile@4.0.0
├─ jsonwebtoken@9.0.2
├─ jszip@3.10.1
├─ jwa@1.4.1
├─ jws@3.2.2
├─ keyv@4.5.4
├─ lie@3.3.0
├─ listenercount@1.0.1
├─ lodash.includes@4.3.0
├─ lodash.isboolean@3.0.3
├─ lodash.isinteger@4.0.4
├─ lodash.isnumber@3.0.3
├─ lodash.isplainobject@4.0.6
├─ lodash.isstring@4.0.1
├─ lodash.once@4.1.1
├─ lodash@4.17.21
├─ log-symbols@4.1.0
├─ lower-case@2.0.2
├─ lru-cache@7.18.3
├─ merge2@1.4.1
├─ micromatch@4.0.5
├─ mime-db@1.52.0
├─ mime-types@2.1.35
├─ mime@2.6.0
├─ mimic-fn@2.1.0
├─ mimic-response@3.1.0
├─ minimatch@3.1.2
├─ mkdirp@0.5.6
├─ ms@2.1.2
├─ multistream@3.1.0
├─ natural-orderby@2.0.3
├─ netmask@2.0.2
├─ node-fetch@2.7.0
├─ normalize-url@6.1.0
├─ object-treeify@1.1.33
├─ onetime@5.1.2
├─ open@7.4.2
├─ ora@5.4.1
├─ os-tmpdir@1.0.2
├─ p-cancelable@2.1.1
├─ pac-proxy-agent@7.0.1
├─ pac-resolver@7.0.0
├─ pako@1.0.11
├─ param-case@3.0.4
├─ password-prompt@1.1.3
├─ path-case@3.0.4
├─ path-is-absolute@1.0.1
├─ path-key@3.1.1
├─ path-type@4.0.0
├─ picomatch@2.3.1
├─ pino-pretty@10.3.1
├─ pino-std-serializers@6.2.2
├─ pino@8.18.0
├─ prettier-plugin-apex@2.0.1
├─ prettier@3.2.5
├─ process-nextick-args@2.0.1
├─ process-warning@3.0.0
├─ process@0.11.10
├─ proper-lockfile@4.1.2
├─ proxy-agent@6.3.1
├─ psl@1.9.0
├─ punycode@2.3.1
├─ querystringify@2.2.0
├─ queue-microtask@1.2.3
├─ quick-format-unescaped@4.0.4
├─ quick-lru@5.1.1
├─ readable-stream@2.3.8
├─ redeyed@2.1.1
├─ regexp-to-ast@0.5.0
├─ require-from-string@2.0.2
├─ requires-port@1.0.0
├─ resolve-alpn@1.2.1
├─ restore-cursor@3.1.0
├─ retry@0.12.0
├─ reusify@1.0.4
├─ rimraf@2.7.1
├─ run-parallel@1.2.0
├─ rxjs@7.8.1
├─ safe-stable-stringify@2.4.3
├─ safer-buffer@2.1.2
├─ sax@1.3.0
├─ secure-json-parse@2.7.0
├─ sentence-case@3.0.4
├─ sequin@0.1.1
├─ setimmediate@1.0.5
├─ sfdx-plugin-source-read@1.2.0
├─ shebang-command@2.0.0
├─ shebang-regex@3.0.0
├─ simple-swizzle@0.2.2
├─ slash@3.0.0
├─ slice-ansi@4.0.0
├─ smart-buffer@4.2.0
├─ snake-case@3.0.4
├─ socks@2.7.1
├─ sonic-boom@3.8.0
├─ source-map@0.6.1
├─ split2@4.2.0
├─ sprintf-js@1.0.3
├─ string_decoder@1.3.0
├─ strip-json-comments@3.1.1
├─ strnum@1.0.5
├─ supports-color@7.2.0
├─ supports-hyperlinks@2.3.0
├─ thread-stream@2.4.1
├─ tmp@0.0.33
├─ to-regex-range@5.0.1
├─ tough-cookie@4.1.3
├─ tr46@0.0.3
├─ traverse@0.3.9
├─ ts-retry-promise@0.7.1
├─ tunnel-agent@0.6.0
├─ type-fest@0.21.3
├─ undici-types@5.26.5
├─ universalify@0.1.2
├─ unzipper@0.10.14
├─ upper-case@2.0.2
├─ uri-js@4.4.1
├─ url-parse@1.5.10
├─ util-deprecate@1.0.2
├─ wait-on@7.2.0
├─ wcwidth@1.0.1
├─ webidl-conversions@3.0.1
├─ websocket-driver@0.7.4
├─ websocket-extensions@0.1.4
├─ whatwg-url@5.0.0
├─ which@2.0.2
├─ widest-line@3.1.0
├─ wordwrap@1.0.0
├─ wrap-ansi@6.2.0
├─ xml2js@0.5.0
├─ xmlbuilder@11.0.1
├─ xmlcreate@2.0.4
└─ yallist@4.0.0
✨ Done in 69.37s.
zsh: no such file or directory: --mutex=file:/Users/ea_enel/.local/share/sf/yarn.lock
Is strange because the file /Users/ea_enel/.local/share/sf/yarn.lock
exist:
ll /Users/ea_enel/.local/share/sf/yarn.lock
-rw-r--r-- 1 ea_enel staff 86B 5 Feb 09:58 /Users/ea_enel/.local/share/sf/yarn.lock
@Alfystar OK, so if you cannot install plugins at all, I guess you should rather consult Salesforce here: https://github.com/forcedotcom/cli It sounds similar to this issue: https://github.com/forcedotcom/cli/issues/2540
Ok thank you! I'll keep you posted
@amtrack, o read the issue you link. From what I see, the problem is yarn. Are you planning to migrate your plugin from yarn to npm?
I found a solution that worked for me, I had to exit the company VPN, change the network, putting the company hotspot and restart the terminal.
On the last point, I'm not sure it was essential, but it finally worked!
However, you were right, it's a connection level problem
Hi there,
I hope this message finds you well. I am encountering an issue while attempting to install the
sfdx-plugin-source-read
plugin using the following command:However, I am consistently receiving the following error:
Additionally, I have attempted to resolve the issue by deleting the
~/.local/share/sf/yarn.lock
file, as suggested in other related issues. Then update Salesforce CLI version to 2.26.10 (currently the last one) but the result is still the same.Any guidance or assistance you can provide in resolving this matter would be greatly appreciated.
Thank you, Emanuele