WSL - Having issues when running npm install - node.js

I'm trying to run npm install on a project but I keep getting this error
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /home/mvargas/work-repos/red-keep/node_modules/#pm2/io/node_modules/semver/bin/semver
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/home/mvargas/work-repos/red-keep/node_modules/#pm2/io/node_modules/semver/bin/semver'
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! /home/mvargas/.npm/_logs/2021-04-15T01_14_50_914Z-debug.log
I'm using WSL2 with Ubuntu 20.04lts, node version is 15.14.0 and npm version is 7.7.6

Solution: Downgraded to node 10

Related

Trouble with installing Nodemon on Windows machine

I have been running into some issues while trying to install nodemon globally.
here's what it looks like:
$ npm i -g nodemon
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\krishnna sarrdah\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\krishnna sarrdah\AppData\Roaming\npm'
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\krishnna sarrdah\AppData\Local\npm-cache\_logs\2021-01-22T16_04_35_377Z-debug.log
Your node installation is slightly out of date, I solved this problem with this
repair Node installation
npm update -g

Getting error if i install any packege in react native npm ERR! code ENOENT

NPM VERSION - 6.13.4
NODE VERSION - v12.16.1
I am trying to install npm i react-native-router-flux --save
and getting error
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path G:\reactnative\Testing\node_modules\babel-plugin-react-transform
npm ERR! dest G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'G:\reactnative\Testing\node_modules\babel-
plugin-react-transform' -> 'G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.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\Bhaman\AppData\Roaming\npm-cache\_logs\2020-03-29T08_40_57_081Z-debug.log
How can i solve this error any idea suggest me
i am checking this ANSWER link but getting no solutions
Thanks
ERROR SOLVED
using this command
react-native start --reset-cache --verbose
DOCUMENT LINK

This is related to npm not being able to download a dependency

C:\Users\Manoj\Desktop\accounts>npm install intro.js --save
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/swimlane/dragula.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
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\Manoj\AppData\Roaming\npm-cache\_logs\2020-03-26T07_47_10_601Z-debug.log
C:\Users\Manoj\Desktop\accounts>
I'm trying to install intro.js in my angular project but when I give npm install intro.js --save command I'm getting the above error. I'm new to this npm installation.Thanks for helping on this.
It seems that you don't have git.
Make sure you have git installed on your machine, because npm tries to download using git

How do I install strongloop for node.js without errors?

I have a new Ubuntu system and I'm trying to install strongloop, but I'm seeing this error.
npm ERR! path /home/russ/.nvm/versions/node/v8.11.4/lib/node_modules/strongloop/node_modules/nodefly-register/node_modules/request/node_modules/aws-sign
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/russ/.nvm/versions/node/v8.11.4/lib/node_modules/strongloop/node_modules/nodefly-register/node_modules/request/node_modules/aws-sign' -> '/home/russ/.nvm/versions/node/v8.11.4/lib/node_modules/strongloop/node_modules/nodefly-register/node_modules/request/node_modules/.aws-sign.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! /home/russ/.npm/_logs/2018-09-10T14_04_24_761Z-debug.log
This leaves me hanging wondering what I should do different to get a successful install.
Russ

How to compile Sass/Less in VS Code?

VSCode Version: 1.2.1
OS Version: Ubuntu 16.04 LTS
Failed to compile Sass/LESS with Node.js v5.0.0 and npm 3.3.6
I followed the instructions as they are from the VS Code documentation, and before trying to automate the compilation, VS Code shoots this error:
Failed to launch external program node-sass styles.scss styles.css.
spawn node-sass ENOENT
Meanwhile it compiles via terminal, while npm start displays this:
npm ERR! Linux 4.4.0-28-generic npm ERR! argv
"/home/eljaouhari/.nvm/versions/node/v5.0.0/bin/node"
"/home/eljaouhari/.nvm/versions/node/v5.0.0/bin/npm" "start" npm ERR!
node v5.0.0 npm ERR! npm v3.3.6 npm ERR! path
/home/eljaouhari/package.json npm ERR! code ENOENT npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open
'/home/eljaouhari/package.json' npm ERR! enoent This is most likely
not a problem with npm itself npm ERR! enoent and is related to npm
not being able to find a file. npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/eljaouhari/Desktop/Compile/npm-debug.log
Can I get a solution to compile on save and to automate the compilation ?
Many thanks.

Resources