keytar#7.7.0 install C:\m\node_modules\keytar
prebuild-install || npm
keytar#7.7.0 build C:\m\node_modules\keytar
node-gyp rebuild
Exit 1 error
Not npm
Problem it maybe login
I have been having this problems whenever I tried to install npm and keytar dopandences .
This is installation is for vs code
I Will appreciate someone to guide through this
Reinstall and installed multiple times without any changes
Related
I am very new to react native and nodejs . Today I installed nodejs on my Elementary Os and installed npm and npx. Now when I try to run npx create-react-app myApp i am getting the following error :
npm ERR! cb.apply is not a function npm ERR! A complete log of this
run can be found in: npm ERR!
/home/user/.npm/_logs/2021-04-29T08_55_29_599Z-debug.log Install for [
'create-react-project#latest' ] failed with code 1
I found some answers on stack overflow but they didn't solve this. Any help would be much appreciated.
npx version:10.2.2
npm version: 7.10.0
node version :16.0.0
I finally solved the error and i am going to keep this thread open if anyone else faces the same problem.
By default, npm installs packages in the local node_modules/ directory. Since npm i npm is shorthand for npm install npm, it will install the latest version of npm locally.
However, when run npm in a shell, the shell picks up the npm in your $PATH, which is probably the global installation.
To update the global installation of npm, run:
npm install --global npm
I am attempting to run an ionic theme in Windows 10 but I have trouble when I run "npm install" returning the error
npm ERR! node-sass#4.9.0 postinstall: `node scripts/build.js`
I checked for several solutions online. I installed windows build tools, npm-gyp and eventually managed to install the latest node sass (node-sass#4.14.0) globally and in my project folder but when I attempt to run "npm install" it still attempts to install node-sass#4.9.0 despite the latest version of node-sass being already installed.
I have tried to check for any reference of node-sass#4.9.0 in the package.json or anywhere else in the project folder but cant find any. I am using node v14.5.0, npm v6.14.6.
What could I be doing wrong?
If you look in the package-lock.json, you should be able to search to see what dependency is depending on the old version of node-sass
i want to install expo-cli on my windows 10 to start a new react native project : i have node js installed with version v10.15.0 but when i enter : "npm install -g expo-cli" but some issus and this are the kind of errors that appears after the installation
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp#0.22.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp#0.22.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sami_\AppData\Roaming\npm-cache_logs\2019-05-21T18_38_29_235Z-debug.log
For me, I used yarn instead of npm.
yarn global add sharp
Then
yarn global add expo-cli
After that, if you run
expo
And got
expo is not a command
Which means you need to
add yarn global packages to the envirmonment variable. And your yarn global packages might in C:\Users\username\AppData\Local\Yarn\bin.
Also, I installed python 2.7 in the beginning. Not sure if it helps.
After wasting almost 1 day, I resolved this issue, this error is due to sharp
If you are having issues during installation consider removing the directory C:\Users[user]\AppData\Roaming\npm-cache_libvips
npm install -g sharp # (The installation require python 2.7 on windows and path env configuration)
npm install -g expo-cli
Deleting the expo-cli folder in AppData\Roaming\npm\node_modules then reinstalling expo worked for me.
I'm trying to install yeoman on Mountain Lion.
I've installed (and reinstall several times) node.js through mac package
I've installed bower and grunt successfully just in case
I've tried to make slinks of node to some bin folders just in case
And always get this error at the end when I try to install yoeman
....
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/is
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js
> yo#1.1.0 postinstall /usr/local/lib/node_modules/yo
> node scripts/doctor.js
sh: node: command not found
npm ERR! yo#1.1.0 postinstall: `node scripts/doctor.js`
npm ERR! Exit status 127
....
I doesn't make sense that node command not found, as can run it with or without sudo.
I noticed there's another similar post :
npm install -g yo command gives -> ERR! yo#1.1.0 postinstall: `node scripts/doctor.js`
But his error is slightly different, I've tried the solution proposed even though without success.
Any advice? Thanks!
Ok! I find a solution for my case.
Let me explain:
I've installed nodejs using the .tar archive and I build it in to the
mac 10.8.5.
Then I realized there is a package for this OS, I've
uninstalled the older version and I've installed the package version.
I think I've cleaned up everything from the previous installation.
Then I've installed bower, and grunt (not necessary as I've seen later)
Then the problem is when I do sudo npm install -g yo it gives me the error shown above.
After chage lots of things and versions, I've realized that the problem was the -g option (install globally) I couldn't figure out why this option is not working for this package (yo)
I did npm install yo as root user
Finally I've moved the new node modules to the usr/local/lib/node_modules forlder , then I've created the soft links of bower, grunt-cli and cli.js to /usr/local/bin as bower, grunt and yo
Hope it could help someone for this case or maybe someone could tell me what I've did wrong at first place.
I too had this problem but like you I went to this post first:
npm install -g yo command gives -> ERR! yo#1.1.0 postinstall: `node scripts/doctor.js`
and creating a symlink worked for me, although it needed tweaking to:
sudo ln -s /usr/local/bin/node /usr/bin/node
NB prior to this I uninstalled the previous version of Node and re-installed to v0.10.24, however this didn't fix the problem with the global flag. Using the above symlink did.
I'm trying to install grunt.js. As the official docs says, I should run
npm install -g grunt-cli
as root (I'm using ubuntu linux). I'm trying - and I get the following error:
$ sudo npm install -g grunt-cli
npm ERR! sudon't!
npm ERR! sudon't! Running npm as root is not recommended!
npm ERR! sudon't! Seriously, don't do this!
npm ERR! sudon't!
npm ERR! couldn't read package.json in .
npm ERR! Error installing .
npm ERR! Error: ENOENT, No such file or directory 'package.json'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-#googlegroups.com>
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok
Can someone please explain:
[1] why npm says `sudon't` and grunt docs says `do sudo`? And what is it all about?
[2] I want to install the grunt as a tool. Why does the message complains about missing package.json which is project-dependent (and I don't want to run grunt on any project, I want to install it globally first)?
[3] what can I do to make it install successfully?
The solution was quite tricky... I'm using ubuntu oneiric ocelot, which was still maintained one week ago (it's not that old). I installed node.js through default ubuntu packages and it turned out to be the problem - I got 0.4.9 version installed, which seems to be old, odd and strange (I had no experience with node.js before). I removed it and followed instructions from https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager - added remote package repository and installed node.js from there. Now I've got a shiny 0.10.5 with sudo npm install working perfectly fine with no complaints.