Command 'SFDX: Create Project' resulted in an error (command 'sfdx.force.project.create' not found) - visual-studio

While creating a new sfdx project in VS Code I am getting an error saying error resulted in the command.
I have installed all the necessary extension packages in VS code. Both Salesforce CLI and VS code are up to date.I uninstalled both salesforce CLI and VS code and installed it again, yet the issue is unresolved. Kindly help me with this issue.enter image description here

This is probably because the SFDX CLI installed is in a local instance and not a global instance.
On your Command or Terminal Window try:
npm install --global sfdx-cli

Related

Proxy error while installing Cypress on citrix machine

I am trying to install cypress on my Citrix machine using command npm install --save-dev cypress (It was working fine earlier) but now getting this error-
also, the same is working fine on my Local, But there is no proxy connection I am using to access internet in my citrix machine, not sure why suddenly it is throwing proxy error, I am not able to proceed further.
Follow the steps mentioned in the below for reference -
Pre-Requisites (Node JS & Package.json Creation -
Download VS Code latest one
Download Node from Node.js site to install
Once installed add New System Variable under windows Environment Variables as "Variable name" as NODE_HOME and "Variable value as C:\Program Files\nodejs
Go to the Project Folder and open in Command Prompt as below -
Then run command npm init
Enter Name as below as highlighted in yellow as cypressautomation -
Press Enter till below -
Then type yes Package.json file should get created
Restart Visual Studio Code
Clean Install of Cypress from Scratch - 1. Clear Cypress by searching in windows and Shift Delete(Excluding the project folders)
2. Download Cypress from https://download.cypress.io/desktop/9.5.2 (Pass any version based from - https://docs.cypress.io/guides/references/changelog
3.Use this command in VS Code terminal as setx CYPRESS_INSTALL_BINARY rojectfolder.zip (Copy this zip file to any location and mention the path after CYPRESS_INSTALL_BINARY)
4. Restart Visual Studio Code d. Run from terminal - npm install cypress#10.3.0 (This will install node_modules & package. lock.json)
5. \node_modules.bin\cypress.cmd install -- force
6. add the below command under scripts in package.json -
Cypress :run": "set Cypress RUN BINARY.C://Users//%username%// AppData//Local//Cypress//Cache//9.5.2//Cypress//Cypress.exe&& cypress open --browser electron (set CYPRESS_RUN_BINARY=mention the Appdata Path for cypress.exe)
We can figure out this issue using two steps.
step 1. Download cypress.zip file using URL that error has mentioned.
step 2 : run this command set CYPRESS_INSTALL_BINARY=yourPath\cypress.zip && npm install cypress

How can I resolve a package installation error in Julia on Windows?

I have just started using Julia on a Windows 10 machine, and I have been trying to install some very basic packages. When I use the Pkg.add() command, however, the command window returns the following error:
ERROR: SystemError: opening file C:\Users\username\.julia\environments\v1.0\Project.toml: Permission denied
The error message pops up even when using the Administrator mode. Any advice or tips would be appreciated! Thanks!
Delete .julia folder or set a new location for the JULIA_DEPOT_PATH.
Once done use a non-administrator account (the one you normally work with) to reinstall packages.

Bitnami MEAN stack on Mac: Unknown command express

I installed MEAN stack using Bitnami installer https://docs.bitnami.com/installer/infrastructure/mean/
It is installed with all ok status. But while creating a sample project as specified in https://docs.bitnami.com/installer/infrastructure/mean/get-started/get-started/, I am getting error with express sample.
I am trying in my local machine [MacBook].
Is there any specific thing I am missing while setting up stack?
Bitnami developer here,
Try this:
Load the environment (by default, installdir is /Applications/meanstack-VERSION):
cd installdir
./use_meanstack
Create a new MEAN project:
mkdir projects
cd projects
express sample
cd sample
npm install
I hope it helps

openssl config failed: error:02001003:system library:fopen:No such process in Appcelerator studio

I'm getting this error in appcelerator studio:
openssl config failed: error:02001003:system library:fopen:No such process
I could not find anyone with the same problem so far.
Tried a few suggestions from the npm repository issues:
Remove environment variable OPENSSL_CONF using command
set OPENSSL_CONF=
This works but after restarting the computer the error is back again.
Removed OPENSSL_CONF from Environment Variables
Go to the Windows Environment Variables and remove OPENSSL_CONF from the System variables. Save it and restart the editor and it works like a charm.
It looks like a NPM error with OpenSSL according to this SO question: https://stackoverflow.com/a/52188374/5193915
or the included GitHub link (https://github.com/npm/npm/issues/17261)
I had the same issue , you should install open ssl :
openssl

Unable to get Docpad to run on Windows

I'm having problems getting Docpad to run on Windows.
I did the following.
Installed the latest version of Node
"NPM Install Docpad"
Then typed "docpad run" in an empty directory
I got an error message that said 'docpad' is not recognized as an internal or external command,
operable program or batch file.
Maybe I'm missing a step somewhere? I've also tried submitting the command to the node command prompt, and have also checked the troubleshooting guide and done a general google search.
Unless you installed an NPM module with the -g option (which is not indicated in the docpad web site so I suspect you didn't) the module won't be available on your PATH.
You can still run it by indicating the full path, for example run the following from the folder where you ran the npm install command:
node_modules\.bin\docpad.cmd
I had this same problem and a restart didn't help me.
What worked for me was installing via the 'nodejs command prompt' rather than the standard windows one.
I ran npm install -g docpad then navigated to my empty folder and ran docpad run and it worked straight away (after 1 hour messing around with the windows command prompt).

Resources