hi, I am unable to create a new project of any kind(blank, tabs etc). When running “ionic start TestApp blank” I get these 2 errors:
[ERROR] Error with .\TestApp\node_modules\ionic-angular\package.json file: FILE_NOT_FOUND
[ERROR] Error with .\TestApp\node_modules@ionic\app-scripts\package.json file: FILE_NOT_FOUND
this is the log in the cmd prompt:
C:\MobileProjects>ionic start TestApp blank
√ Creating directory .\TestApp - done!
√ Downloading and extracting blank starter - done!
? Would you like to integrate your new app with Cordova to target native iOS and Android? Yes
√ Personalizing ionic.config.json and package.json - done!
ionic integrations enable cordova --quiet
√ Downloading integration cordova - done!
√ Copying integrations files to project - done!
[OK] Added cordova integration!
[ERROR] Error with .\TestApp\node_modules\ionic-angular\package.json file: FILE_NOT_FOUND
[ERROR] Error with .\TestApp\node_modules@ionic\app-scripts\package.json file: FILE_NOT_FOUND
Installing dependencies may take several minutes.
- IONIC DEVAPP *
Speed up development with the Ionic DevApp, our fast, on-device testing mobile app
-
Test on iOS and Android without Native SDKs
-
LiveReload for instant style and JS updates
️–> Install DevApp: Ionic DevApp - Appflow ←
npm i
- Running command
this part takes like 15 mins, the this shows up:
[ERROR] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename
'C:\MobileProjects\TestApp\node_modules\.staging\fsevents-0deb5a78\node_modules\asn1' ->
'C:\MobileProjects\TestApp\node_modules\.staging\asn1-b9d76088'
npm ERR! path C:\MobileProjects\TestApp\node_modules\@angular-devkit\build-optimizer\node_modules\source-map
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename
'C:\MobileProjects\TestApp\node_modules\@angular-devkit\build-optimizer\node_modules\source-map' ->
'C:\MobileProjects\TestApp\node_modules\@angular-devkit\build-optimizer\node_modules\.source-map.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\fabian\AppData\Roaming\npm-cache\_logs\2018-03-16T20_24_24_144Z-debug.log
C:\MobileProjects>
I have uninstalled node, cordova, ionic more than 3 times, cleaned the npm cache , reboot the computer etc and so far nothing has worked.I tried also with the latest stable node version(8.10)
These are my settings:
Windows 10
C:\MobileProjects>node -v
v9.8.0
C:\MobileProjects>ionic -v
3.20.0
C:\MobileProjects>cordova -v
8.0.0
C:\MobileProjects>npm -v
5.6.0