Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm i Running command - failed! (exit code 254)

Ionic :3.20.0

node: v8.10.0

npm: 5.6.0

npm i ✖ Running command - failed! [ERROR] An error occurred while running npm i (exit code 254):

npm ERR! path 
/Users/lucaszimmermann/Desktop/myApp/node_modules/tsickle/src/main.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 
'/Users/lucaszimmermann/Desktop/myApp/node_modules/tsickle/src/main.js'
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!     
/Users/lucaszimmermann/.npm/_logs/2018-04-04T16_41_39_270Z-debug.log
like image 815
Luska Zimmermann Avatar asked Apr 04 '18 16:04

Luska Zimmermann


1 Answers

I faced a similar issue after doing the below actions this issue solved.

  1. Delete package-lock.json file.

  2. Open cmd/terminal in administrator mode.

  3. run command: npm install

  4. run command: npm update

like image 50
Kishor K Avatar answered Nov 17 '22 12:11

Kishor K