-
Notifications
You must be signed in to change notification settings - Fork 12k
"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
Comments
As the error message indicates, we don't support that name for creating a new app. Please choose another name. |
For testing this you can use somthing like "ng new angular-test" |
Any name should be possible. What is the reason to not support name "test"? |
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'. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
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
[execsync v1.0.2] Attempting to compile native extensions.
{ Error: spawn node-gyp ENOENT
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.
[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
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
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
The text was updated successfully, but these errors were encountered: