You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Upgrading from node 6 to node 8 as well as upgrading npm 3.10 to npm 5x completely broke my ionic 1.7.16 install.
After upgrading both node and npm when I attempted to compile my projects I got the following error:
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at evalmachine.:40:20
at Object. (/usr/local/lib/node_modules/ionic/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
Cannot find module 'internal/fs' (CLI v1.7.16)
Steps to Reproduce:
My install base got so jacked up trying different things to fix the above that I had uninstall everything and completely perform a clean install with node/npm/cordova and ionic
iMac:~ test$ pwd
/Users/test
iMac:~ test$ cd dev
iMac:dev test$ ionic start TestProj tabs
Error: Cannot find module 'internal/fs'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at evalmachine.:40:20
at Object. (/usr/local/lib/node_modules/ionic/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/fs.js:11:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
Cannot find module 'internal/fs' (CLI v1.7.16)
Your system information:
Cordova CLI: 7.0.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: Not installed
ios-sim version: 6.0.0
OS: Mac OS X El Capitan
Node Version: v8.1.3
Xcode version: Xcode 8.2.1 Build version 8C1002
Output:
My ionic info:
Other Information:
I then uninstalled everything again and installed node 6.11.0 which automatically loaded npm 3.10.10 and then installed cordova 7 and ionic v.1.7.16 - everything installed cleanly. However, when compiling a simple test project I am getting gradle-fs warnings still but at least it worked. There must be some dependency with ionic v1 that is preventing a new install with node 7x/8x and/or npm4x/5x...its the same dependency which prevented my previous projects from compiling after upgrading to node 8.1.3 and npm 5.0.3 (and then again to npm 5.1.0)
I ask that if there is a fix, or work around, for this that ionic clearly document how to do this because I can't find any references on how to cleanly fix this issue. I spent considerable time (3 days in fact) trying to force Node 8.1.3/npm 5.1.0 to work with ionic 1.7.16 but could never manage to get it work.
And now I worry that my projects plugins will start to break because some of them will require node8 and cause me additional headaches.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARNING: You are on OS X 10.11 El Capitan or greater, you may need to add the
!!!! WARNING: --unsafe-perm=true flag when running npm install
!!!! WARNING: or else it will fail.
!!!! WARNING: link:
!!!! WARNING: https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=== BUILD TARGET ios-deploy-lib OF PROJECT ios-deploy WITH THE DEFAULT CONFIGURATION (Release) ===
Binary downloaded and installed at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/node-sass/vendor/darwin-x64-48/binding.node
✗ (node:21110) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Creating Ionic app in folder /Users/test/dev/HelloTest based on tabs project
Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
[=============================] 100% 0.0s
Updated the hooks directory to have execute permissions
Update Config.xml
Initializing cordova project
Adding in iOS application by default
✗ (node:21110) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
One last thing to note, on my windows 7 PC, I have the following installed and its all working:
Cordova CLI: v7.0.1
NPM v5.0.1
Node: v6.10.3
Ionic: v1.7.16
Since npm 5x is working on the PC, then I am assuming it is node 7 or 8 that is breaking things on the mac. Just a hunch though.
The text was updated successfully, but these errors were encountered:
Description:
Upgrading from node 6 to node 8 as well as upgrading npm 3.10 to npm 5x completely broke my ionic 1.7.16 install.
After upgrading both node and npm when I attempted to compile my projects I got the following error:
Steps to Reproduce:
My install base got so jacked up trying different things to fix the above that I had uninstall everything and completely perform a clean install with node/npm/cordova and ionic
Output:
My
ionic info
:Other Information:
I then uninstalled everything again and installed node 6.11.0 which automatically loaded npm 3.10.10 and then installed cordova 7 and ionic v.1.7.16 - everything installed cleanly. However, when compiling a simple test project I am getting gradle-fs warnings still but at least it worked. There must be some dependency with ionic v1 that is preventing a new install with node 7x/8x and/or npm4x/5x...its the same dependency which prevented my previous projects from compiling after upgrading to node 8.1.3 and npm 5.0.3 (and then again to npm 5.1.0)
I ask that if there is a fix, or work around, for this that ionic clearly document how to do this because I can't find any references on how to cleanly fix this issue. I spent considerable time (3 days in fact) trying to force Node 8.1.3/npm 5.1.0 to work with ionic 1.7.16 but could never manage to get it work.
And now I worry that my projects plugins will start to break because some of them will require node8 and cause me additional headaches.
One last thing to note, on my windows 7 PC, I have the following installed and its all working:
Cordova CLI: v7.0.1
NPM v5.0.1
Node: v6.10.3
Ionic: v1.7.16
Since npm 5x is working on the PC, then I am assuming it is node 7 or 8 that is breaking things on the mac. Just a hunch though.
The text was updated successfully, but these errors were encountered: