-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Error when trying to use any ng functions (like ng new X for example) #2216
Comments
Having same issue |
Do you also have it installed locally? I had it installed globally and locally and received the error. Uninstalled the local version in the folder and it worked fine. |
I created a new folder and tried to sudo ng new PROG.... |
Nope I didn't have it created before On Sep 19, 2016 8:02 AM, "Vladi Rozen" [email protected] wrote:
|
See https://github.com/angular/angular-cli#prerequisites You need at least npm3 to run the CLI. I suggest installing Node 6 which comes with npm 3. |
I have npm3 and node 5/6. It gives the same errors above. |
I installed the prerequisites, latests npm and node (tried with all available versions). |
I have npm 3.x and node 6.x. But I have the same issue |
@filipesilva - I have npm 3.10.8 and have the same issue. Maybe this project just doesn't work on Node 4.5? |
I have the same issue and i found this question on stackoverflow. |
Workaround: #2355 |
Simplest workaround to continue working in your project is comment line 25 of node_modules/angular-cli/bin/ng : |
Really fixed in #2178 |
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. |
Mac OSX El Capitan.
node --version
v4.5.0
npm --version
2.15.9
I installed angular cli globally and I received this error, its happening with all ng functions, I cannot create a new project using ng.
please help.
ng --version / ng new PROG
fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
TypeError: path must be a string
at TypeError (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Function.Version.fromProject (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:87:31)
at Function.Version.isPreWebpack (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:111:31)
at Function.Version.assertPostWebpackVersion (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:97:18)
at /usr/local/lib/node_modules/angular-cli/bin/ng:25:15
at /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:44:21
at ondir (/usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:187:31)
at /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:153:39
The text was updated successfully, but these errors were encountered: