-
Notifications
You must be signed in to change notification settings - Fork 642
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
TypeError: Cannot read property 'F_OK' of undefined #2341
Comments
Hello I have the same problem and I do not know how to do to solve it. Ionic info: Global packages: @ Ionic / cli-utils: 1.2.0 System: Node: v6.1.0 ✘ olivier@olivier-2 $ ~/Sites/player/myApp ionic Thanks in advance for the help ! |
Had the exact same issue but updating nodejs itself to LTS version 6.10.3 with NPM version 3.10.10 seemed to solve the problem. |
Hello,
I have just updated node js (on macOS) and i have this version:
Olivier @ olivier-2 $ ~ / Sites / playernorine / myApp> node -v
V6.1.0
Olivier @ olivier-2 $ ~ / Sites / playernorine / myApp> npm -v
4.6.1
And I still have the same mistake …
… Le 24 mai 2017 à 18:53, Petzall ***@***.***> a écrit :
Had the exact same issue but updating nodejs itself to LTS version 6.10.3 with NPM version 3.10.10 seemed to solve the problem.
Does it for you guys too maybe?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#2341 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFgZmazOIfovjEEcga77QdW-yhySupLNks5r9GB6gaJpZM4NlHOa>.
|
Ty @Petzall updated node v7.10.0 and works! |
@Oliviercreativ the latest version of node is v7.10.0 like TwixD got, but the LTS (Long Term Support) version could be more stable. If you're on MacOS or Windows the simplest way to upgrade is via nodejs.org, download the install package and run the installer! |
Work for me 👍 but i'm rebuilded node-sass ! |
Hey all, yep, the recommendations to upgrade node and npm are correct. You might only get this error if your node version is old (in this case, 6.1 and 6.2 are from mid-2016). In these days, even a year is an eternity for JS 😄 |
FYI, nvm was holding back my currently installed v7.10.0 so this was just a mistake on my part not realizing the current running version of node was out of date. Thanks for catching that! |
I had the same issue, upgrading my node from
Check this SO answer on how to upgrade I'm on
|
Yep, latest 6 or 7 works. |
Instead of erroring with some strange message (const is not a thing, fs.constants is undefined, etc) this will error out with a helpful message. Addresses ionic-team#2341 Addresses ionic-team#2107
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Note: for build related issues you can open up an issue on the ionic-app-scripts repo
https://github.com/driftyco/ionic-app-scripts
Please ensure that you are on the latest version of the CLI.
npm view ionic@latest version
Short description of the problem:
Cannot execute command 'ionic' from an ionic3 project directory. Command works when outside of an ionic project dir.
What behavior are you expecting?
Error displays "TypeError: Cannot read property 'F_OK' of undefined"
Steps to reproduce:
Post the output of
ionic info
below please[WARN] You are not in an Ionic project directory. Project context may be missing.
global packages:
System:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The text was updated successfully, but these errors were encountered: