question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`force:project:create`command returns "ERR_ASSERTION: A name parameter is required to create a storage"

See original GitHub issue

Summary

ERR_ASSERTION: A name parameter is required to create a storage error message when using SFDX:Create Project

Steps To Reproduce:

  1. install java via https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
  2. Install SFDX CLI and salesforcedx-vscode into vscode
  3. run use SFDX: create project
  4. 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
angelsalazar-zzcommented, May 22, 2018

@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.

6reactions
vazexqicommented, Jan 12, 2018

@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:

  1. Create top level directory (test)
  2. cd into test
  3. touch package.json (this creates an empty package.json without any entries)
  4. run sfdx force:apex:class:create -n testclass (we repro this with force:apex:class:create but this will also affect sfdx force:project:create)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Running into a "A name parameter is required to create ...
salesforcedx - Running into a "A name parameter is required to create storage" when creating Apex Class w/ VSCode - Salesforce Stack Exchange. ......
Read more >
"ERR_ASSERTION: A name parameter is required to create a ...
"ERR_ASSERTION: A name parameter is required to create a storage" when using Salesforce SFDX CLI command 'sfdx force:project:create' · Ask ...
Read more >
ERROR running force:project:create - Trailhead - Salesforce
Hi, I am getting the following error when I try to create a project using SFDX CLI. "ERROR running force:project:create: A name parameter...
Read more >
Getting "Failed to create the Salesforce DX project: A name ...
3. Create the project in intelliJ and choose this folder as project location. You should not see the "A name parameter is required...
Read more >
SFDX Create Project Error - WIPDeveloper.com
This causes the error A name parameter is required to create a storage . This is weird since I am creating a project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found