`force:project:create`command returns "ERR_ASSERTION: A name parameter is required to create a storage"
See original GitHub issueSummary
ERR_ASSERTION: A name parameter is required to create a storage
error message when using SFDX:Create Project
Steps To Reproduce:
- install java via https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
- Install SFDX CLI and salesforcedx-vscode into vscode
- run use
SFDX: create project
- observe “ERR_ASSERTION: A name parameter is required to create a storage” in bottom console.
Note: running sfdx force:project:create --projectname testing --outputdir /home/neil/playground/salesforce/test
in command line gives same error
Expected result
SFDX project should be created
Actual result
Error message in terminal: ERR_ASSERTION: A name parameter is required to create a storage
Additional information
VS Code Version:
Version 1.19.2 Commit 490ef761b76b3f3b3832eff7a588aac891e5fe80 Date 2018-01-10T15:57:21.071Z Shell 1.7.9 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64
SFDX CLI Version: sfdx-cli/6.0.26-3d23012 (linux-x64) node-v8.6.0
OS and version: Ubuntu 16.04
**Java version: **: java version “1.8.0_151” Java™ SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot™ 64-Bit Server VM (build 25.151-b12, mixed mode)
Internal Work Item: W-4241831
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:16 (3 by maintainers)
Top GitHub Comments
@vazexqi Weird, there was one package.json file without a name attribute in the root folder of the system directory, I deleted and the command run as expected.
@neildaemond - Thanks for filing this.
I suspect I know what the root cause is. Could you confirm if you have a package.json (without a “name” field) somewhere in the folder or in one of its ancestors?
We are tracking this internally as W-4241831 and our repro steps are:
cd
into testtouch package.json
(this creates an empty package.json without any entries)sfdx force:apex:class:create -n testclass
(we repro this withforce:apex:class:create
but this will also affectsfdx force:project:create
)