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.
Related
I had no issue downloading truffle for the first time using npm install truffle on my terminal. I later removed truffle and node.js from my mac. Now I'm trying to reinstall truffle using the same code and I'm getting this error. Been trying every suggestion I read online and still wouldn't work
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Program Files (x86)\git\bin\bash.exe
npm ERR! file C:\Program Files (x86)\git\bin\bash.exe
npm ERR! path C:\Program Files (x86)\git\bin\bash.exe
npm ERR! errno ENOENT
npm ERR! bufferutil#4.0.3 install: `node-gyp-build`
npm ERR! spawn C:\Program Files (x86)\git\bin\bash.exe ENOENT
npm ERR!
npm ERR! Failed at the bufferutil#4.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Any help would be highly appreaciated!
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
At the end, the package is installed successfully, but I have to retry several times before the installation is done. It doesn't matter what package or if it is global or local.
The messages are as follow:
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\david\Dropbox\www\Javascript\nodeuseapi\node_modules\grunt-contrib-uglify
npm ERR! dest C:\Users\david\Dropbox\www\Javascript\nodeuseapi\node_modules\.grunt-contrib-uglify.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\david\Dropbox\www\Javascript\nodeuseapi\node_modules\grunt-contrib-uglify' -> 'C:\Users\david\Dropbox\www\Javascript\nodeuseapi\node_modules\.grunt-contrib-uglify.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\david\AppData\Roaming\npm-cache\_logs\2020-09-09T08_30_20_853Z-debug.log
In this case, it was grunt-contrib-uglify, but it could have been any other package.
It also doesn't seem to matter whether if I install from cmd with admin privileges or from VS Code terminal.
I'm under windows 10. Node is v12.18.3. Npm is 6.14.8.
Thank you for any help you can provide on the matter.
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
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