Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49256

Node modules not installing on ionic 3 project after upgraded the node version to 16.0.0

$
0
0

I tried to run npm install. It installs the node_modules directory but after a few seconds node_modules directory disappears.

Here is the error code:

User
npm ERR! code 1
npm ERR! path C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli   'C:\\Users\\hr\\OneDrive\\Pictures\\trintas-mobile-new\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli   'rebuild',
npm ERR! gyp verb cli   '--verbose',
npm ERR! gyp verb cli   '--libsass_ext=',
npm ERR! gyp verb cli   '--libsass_cflags=',
npm ERR! gyp verb cli   '--libsass_ldflags=',
npm ERR! gyp verb cli   '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.13.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed  python2 Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed  python Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed     at F (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed     at E (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed     at C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb could not find "python". checking python launcher
npm ERR! gyp verb could not find "python". guessing location
npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack     at callback (C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\graceful-fs\polyfills.js:306:20)    
npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\hr\\OneDrive\\Pictures\\trintas-mobile-new\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\hr\OneDrive\Pictures\trintas-mobile-new\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hr\AppData\Local\npm-cache\_logs\2024-03-06T08_37_35_469Z-debug.log```


and my package.json file is,


{
  "name": "Catalina",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "5.0.3",
    "@angular/compiler": "5.0.3",
    "@angular/compiler-cli": "5.0.3",
    "@angular/core": "5.0.3",
    "@angular/forms": "5.0.3",
    "@angular/http": "5.0.3",
    "@angular/platform-browser": "5.0.3",
    "@angular/platform-browser-dynamic": "5.0.3",
    "@ionic-native/barcode-scanner": "^4.5.2",
    "@ionic-native/camera": "^4.5.2",
    "@ionic-native/core": "4.4.0",
    "@ionic-native/diagnostic": "^4.5.3",
    "@ionic-native/dialogs": "^4.20.0",
    "@ionic-native/file": "^4.6.0",
    "@ionic-native/file-opener": "^4.20.0",
    "@ionic-native/file-transfer": "^4.20.0",
    "@ionic-native/image-picker": "^4.20.0",
    "@ionic-native/insomnia": "^4.20.0",
    "@ionic-native/media-capture": "^4.20.0",
    "@ionic-native/network": "^4.5.3",
    "@ionic-native/splash-screen": "4.4.0",
    "@ionic-native/status-bar": "4.4.0",
    "@ionic/pro": "1.0.16",
    "cordova-android": "~6.3.0",
    "cordova-plugin-camera": "^4.0.1",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-dialogs": "2.0.1",
    "cordova-plugin-file": "~6.0.1",
    "cordova-plugin-insomnia": "4.3.0",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-whitelist": "^1.3.1",
    "cordova.plugins.diagnostic": "^3.9.2",
    "file-saver": "^2.0.1",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic3-star-rating": "^2.1.2",
    "ionicons": "3.0.0",
    "ngx-order-pipe": "^2.1.0",
    "phonegap-plugin-barcodescanner": "^7.0.2",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "underscore": "^1.8.3",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.1.8",
    "typescript": "2.4.2"
  },
  "config": {
    "ionic_webpack": "./config/webpack.config.js"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "phonegap-plugin-barcodescanner": {},
      "cordova-plugin-camera": {},
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova.plugins.diagnostic": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-file": {},
      "cordova-plugin-insomnia": {},
      "cordova-plugin-dialogs": {}
    },
    "platforms": [
      "android"
    ]
  }
}

what i need to do?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>