Skip to content

ng new create project in different path in OSX #2120

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
tmleeek opened this issue Sep 14, 2016 · 11 comments
Closed

ng new create project in different path in OSX #2120

tmleeek opened this issue Sep 14, 2016 · 11 comments

Comments

@tmleeek
Copy link

tmleeek commented Sep 14, 2016

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    OSX
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

angular-cli: 0.0.39
node: 5.1.0
os: darwin x64

  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

hello , ng new dont generate in the same folder in same folder its generate it on my home user directory

so i am in this path :

/Users/alawialbaiti/projects/

and type : ng new myapp

i found the project generated in this place :

/Users/alawialbaiti/myapp

  1. The log given by the failure. Normally this include a stack trace and some
    more information.
    none
  2. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

@jasonhodges
Copy link

@tmleeek perhaps you could try once more creating a new project under the /Users/alawialbaiti/projects/ directory. I just tried to reproduce the issue you've described and was unsuccessful. I must mention that I ran npm install -g angular-cli first to get a fresh install.
My versions are listed here:
angular-cli: 1.0.0-beta.12-1
node: 4.4.5
os: darwin x64

@tmleeek
Copy link
Author

tmleeek commented Sep 15, 2016

I have done install -g with SUDO , i have try now to recreate the project but the problem still exist even that i am in other folder

Alawis-MacBook-Pro:Desktop alawialbiti$ cd demo
Alawis-MacBook-Pro:demo alawialbiti$ ls
1.mp4 2.mp4 3.mp4
Alawis-MacBook-Pro:demo alawialbiti$ ng new HelloWorld
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Directory 'HelloWorld' already exists.
Alawis-MacBook-Pro:demo alawialbiti$ mkdir hope
Alawis-MacBook-Pro:demo alawialbiti$ ls
1.mp4 2.mp4 3.mp4 hope
Alawis-MacBook-Pro:demo alawialbiti$
screen shot 2016-09-15 at 7 15 46 am

@jasonhodges
Copy link

Can you run ls on your Desktop and paste the results here? I've been working with the latest build all evening and have not had any directory issues.

@tmleeek
Copy link
Author

tmleeek commented Sep 15, 2016

sure

Alawis-MacBook-Pro:Desktop alawialbiti$ ls

56923 Yoga.pdf alawi test demo ionic-1.3.1
Alawis-MacBook-Pro:Desktop alawialbiti$

On Thu, Sep 15, 2016 at 7:48 AM, Jason Hodges [email protected]
wrote:

Can you run ls on your Desktop and paste the results here? I've been
working with the latest build all evening and have not had any directory
issues.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2120 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AByrMP0WuMdc8n2YNwqrP61eBJqhlfn8ks5qqM4igaJpZM4J9VU5
.

@jasonhodges
Copy link

Try running npm install -g angular-cli without using sudo
After that is complete, if you don't receive errors during the install, paste your versions here once more.
Also, what version of OSX are you running?

@tmleeek
Copy link
Author

tmleeek commented Sep 15, 2016

i tried without sudo but its full of errors

i use OSX 10.11.6 (15G1004)

On Thu, Sep 15, 2016 at 8:22 AM, Jason Hodges [email protected]
wrote:

Try running npm install -g angular-cli without using sudo
After that is complete, if you don't receive errors during the install,
paste your versions here once more.
Also, what version of OSX are you running?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2120 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AByrMPWKD6hV7bGx8QhtKixv6i0d5DLGks5qqNX8gaJpZM4J9VU5
.

@tmleeek
Copy link
Author

tmleeek commented Sep 15, 2016

i forget to attach image of installing without sudo with npm log

screen shot 2016-09-15 at 8 29 54 am
npm-debug.txt

@tmleeek
Copy link
Author

tmleeek commented Sep 17, 2016

i want just to inform me that i have installed the lateset angular-cli and
angular 2 and still keep getting the same problem ..

On Thu, Sep 15, 2016 at 8:31 AM, علوي [email protected] wrote:

i tried without sudo but its full of errors

i use OSX 10.11.6 (15G1004)

On Thu, Sep 15, 2016 at 8:22 AM, Jason Hodges [email protected]
wrote:

Try running npm install -g angular-cli without using sudo
After that is complete, if you don't receive errors during the install,
paste your versions here once more.
Also, what version of OSX are you running?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2120 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AByrMPWKD6hV7bGx8QhtKixv6i0d5DLGks5qqNX8gaJpZM4J9VU5
.

@filipesilva
Copy link
Contributor

I think your issue is a dupe of #1133, can you check that solution?

@tmleeek
Copy link
Author

tmleeek commented Sep 22, 2016

wow thats really was the solution thanks @filipesilva
i was not know this could happen from package.json file .

@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 6, 2019
clydin pushed a commit to clydin/angular-cli that referenced this issue Aug 29, 2023
Add `serverTarget` for the prerender architect in the install schematic

Closes angular#2120
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

3 participants