Skip to content

"We currently do not support a name of "test"." #3505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ehyko opened this issue Dec 10, 2016 · 5 comments
Closed

"We currently do not support a name of "test"." #3505

ehyko opened this issue Dec 10, 2016 · 5 comments

Comments

@ehyko
Copy link

ehyko commented Dec 10, 2016

OS?

Windows 7

Versions.

angular-cli: 1.0.0-beta.22-1
node: 6.9.2
os: win32 x64

Repro steps.

ng new test

The log given by the failure.

We currently do not support a name of "test".

Mention any other details that might be useful.

ERROR while installing angular-cli

npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
\AppData\Roaming\npm\ng -> \AppData\Roaming\npm\node_modules\angular-cli\bin\ng

[email protected] install \AppData\Roaming\npm\node_modules\angular-cli\node_modules\execSync
node install.js

[execsync v1.0.2] Attempting to compile native extensions.

{ Error: spawn node-gyp ENOENT

at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn node-gyp',
path: 'node-gyp',
spawnargs: [ 'rebuild' ] }
[execSync v1.0.2]
Native code compile failed!!
Will try to use win32 extension.

[email protected] install \AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build

[node-zopfli] Success: "\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node" is installed via remote

[email protected] install \AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-48_binding.node
Download complete ] - :
Binary saved to \AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass\vendor\win32-x64-48\binding.node
Caching binary to \AppData\Roaming\npm-cache\node-sass\3.13.1\win32-x64-48_binding.node

[email protected] postinstall \AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass
node scripts/build.js

Binary found at \AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass\vendor\win32-x64-48\binding.node
Testing binary
Binary is fine


@filipesilva
Copy link
Contributor

As the error message indicates, we don't support that name for creating a new app. Please choose another name.

@AndreySchmidt
Copy link

For testing this you can use somthing like "ng new angular-test"

@Chris2011
Copy link

Any name should be possible. What is the reason to not support name "test"?

@goraxe
Copy link

goraxe commented Mar 11, 2018

just hit this myself, wondering what the rational behind requiring a hyphen in the name? Looks like this is a re-occurring issue/question #912 #2645

I did a little more testing to see what was a valid naming scheme.

my-app, my.app, myApp, MyApp all work my_app did not, nor did my app, my|app, my+app, my#app, my:app (note all were tested with appropriate shell quoting) .

my#App got a bit more of a verbose error message (223 chars vs the 44 chars in response to ng new app)

My personal opinion here is the rules for the name convention should be included in the output of ng help new, it saves everyone's time in looking at github issues and head scratching on 'why does it not work?' I'm big fan of 'rule of least surprise' here not being able to create an app called 'test' is actually pretty surprising.

It would also be honest to doc the reason behind the rule (not required, just ya know nice) ie 'we parse the name and use it as part of a namespace and we do our best to figure out your naming schema', 'we think it looks pretty', or 'not really sure its just the way we have always done it'.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants