Npm install windows errors

Ошибки при npm install

Как разобраться в этих ошибках?

npm ERR! code EACCES

npm ERR! syscall rename

npm ERR! path /home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial

npm ERR! dest /home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, rename ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’ -> ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE’

npm ERR! [OperationalError: EACCES: permission denied, rename ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’ -> ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE’] <

npm ERR! cause: [Error: EACCES: permission denied, rename ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’ -> ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE’] <

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘rename’,

npm ERR! path: ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’,

npm ERR! dest: ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE’

npm ERR! stack: «Error: EACCES: permission denied, rename ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’ -> ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE'»,

npm ERR! errno: -13,

npm ERR! code: ‘EACCES’,

npm ERR! syscall: ‘rename’,

npm ERR! path: ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/array-initial’,

npm ERR! dest: ‘/home/nikolay/projects/start-tpl-html5-coding/node_modules/.array-initial.DELETE’,

npm ERR! parent: ‘start-tpl-html5-coding’

npm ERR! The operation was rejected by your operating system.

npm ERR! It is likely you do not have the permissions to access this file as the current user

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

NodeJS-ошибка установки с NPM

Я устанавливаю определенный скрипт NodeJS -ласки. Но я не могу этого сделать. Я использую Windows 8.1, может кто-нибудь сказать мне, что это проблема я столкнулся, и почему эта установка не работает. Кажется, есть проблема с зависимостью buffertools, насколько я могу думать. Не знаю, как это можно исправить?

Если я загружаю сборку из github и помещаю ее в node-modules, ничего не работает. когда я пытаюсь начать, используя npm start, или во время реализации тоже.

12 ответов:

Как указано ниже, вам может не понадобиться устанавливать VS на windows, проверьте это

обновление 02/2016

некоторые плагины npm нужны node-gyp для установки.

однако, node-gyp имеет свои собственные зависимости (со страницы github):

обновление 09/2016

если вы с помощью Windows Теперь вы можете установить все node-gyp зависимости с помощью одной команды (Примечание: Запуск от имени администратора в Windows PowerShell):

а затем установить пакет

обновлено 06/2018

удалить $HOME/.узел-каталог gyp и повторите попытку.

Смотрите полную документацию здесь: node-gyp

убедитесь, что у вас есть все необходимое программное обеспечение для работы node-gyp :

вы можете настроить версию Visual Studio, используемую node-gyp через переменную окружения, так что вы можете избежать необходимости установки —msvs_version=2012 свойство каждый раз, когда вы делаете установку npm.

  • set GYP_MSVS_VERSION=2012 для Visual Studio 2012
  • set GYP_MSVS_VERSION=2013e (‘e’ означает Бесплатная экспресс-выпуск’)

Это все еще болезненно для пользователей Windows NodeJS, поскольку предполагается, что у вас установлена копия Visual Studio, и у многих конечных пользователей этого никогда не будет. Поэтому я лоббирую Joyent для поощрения их к включению веб-сокетов в качестве части основного узла, а также к возможному отправке компилятора GNU gcc в качестве части NodeJS установить, так что мы можем навсегда решить эту проблему.

Читайте также:  Установить notepad kali linux

не стесняйтесь добавлять свой голос на сайте:

я столкнулся с проблемой с ошибкой:

вот что я делал и что, наконец, сработало.

отказ от ответственности: Я просто получаю свои руки в узел, угловой после многих лет в мире Java, Linux и других.

Описание Окружающей Среды: Windows 8.1 64-разрядная; Cygwin; cygwin bash shell

используется, что привело к ошибке: npm install-g карма

: джип ЭРР! ошибка настройки джип ЭРР! ошибка стека: не удается найти исполняемый файл Python «python», вы можете установить PYT HON env variable.

Discovery: ‘какой python’ на оболочке bash ясно показывает ‘/ usr/bin / python’. Теперь это раздражает!

решение: это применимо только к тем, кто использует среду, аналогичную тому, что у меня есть, т. е. с помощью cygwin и bash shell. Надеюсь, что это поможет в других средах, как но имейте в виду, что ваш чайник чая может выглядеть немного иначе, чем мой.

  1. во-первых, необходимо установить переменную $ PYTHON shell env.bashrc использует явный путь windows к исполняемому файлу python, а не корневой путь unix (/usr/bin), используемый cygwin.
  2. во-вторых, и этот взял много проб / ошибок,и вот вам! Cygwin устанавливает python под /usr / bin (который на самом деле является зеркалом /bin в windows) с версией, т. е. (в моем system) / usr/bin / python2.7.exe, а затем добавляет ссылку / usr/bin / python —> python2.7.исполняемый. Проблема в том, что gyp не может следовать этой ссылке и продолжает давать раздражающую ошибку, что он не может найти python, хотя вы можете найти его просто отлично из командной строки оболочки.
  3. с вышеуказанным фоном теперь добавьте следующую строку к вашему .bashrc

экспорт PYTHON=»C:/cygwin64/bin/python2.7.exe (или любая другая версия на вашем система)»

  1. теперь источник вашей .bashrc из вашего домашнего каталога (на cygwin)—> ‘source .bashrc’

теперь вы должны быть в порядке, и gyp найдет исполняемый файл python.

Я надеюсь, что это поможет кому-то наткнуться на ту же или подобную проблему.

npm install errors on vagrant/homestead/windows: EPROTO: protocol error, symlink

I’m building my first project in Laravel and trying to use Elixir, using homestead on Windows 8.1. I’ve hit the known npm/vagrant issue of too-long-path-names: https://harvsworld.com/2015/how-to-fix-npm-install-errors-on-vagrant-on-windows-because-the-paths-are-too-long/

So I made the one line edit recommended in that article (thank god for that guy), and then ran (with and without sudo): npm install —no-bin-links

It’s moved me ahead so now I get two different kinds of errors: some ‘Missing write access’ errors, and a bunch of «EACCES» errors:

The error output gives me my next clue in the scavenger hunt (I think): Please try running this command again as root/Administrator

That brings me to this post, but the difference for me is there’s no change even after I use sudo (or update my user permissions like so):

sudo chown -R $USER /usr/local

sudo chown -R $(whoami)

Update: then after the suggestion below I get EPROTO and EXTXTBSY errors (even after following the prompted suggestion to rename the npm-debug.log back:

So I tried running gulp to see if it would give me clues, and error output had me do:

Running that gives me the same EPROTO and ETXTBSY errors, and the npm-debug.log file shows: error EPROTO: protocol error, symlink ‘../node-sass/bin/node-sass’ -> ‘/home/vagrant/Code/Family-laravel/node_modules/laravel-elixir/node_modules/gulp-sass/node_modules/.bin/node-sass’

Then after working on some other stuff for an hour I came back fresh and redid these steps, this time getting way fewer errors:

sudo npm -g install npm@latest (fine)

Читайте также:  Как включить обновления windows server 2016

sudo npm install —no-bin-links (just the ETXTBSY error and an error in plugin ‘run sequence’, in task ‘sass’)

sudo npm rebuild node-sass —no-bin-links (no errors!)

gulp (just one error: not found: notify-send)

npm install not working in windows

I have no idea what is happening here. Hoping someone can help me.

This works great in my mac. But same process in Windows and npm install crashes. This is what I get.

I’ve tried everything I’ve seen in SO so far and every link Google search produced. I tried the following as suggested here:

Ran it as admin,

tried npm install -g

re-started xampp server

turned off Windows defender

checked the PATH for C:\Program Files\nodejs

Short of throwing this POS Windows threw a window, pun intended, I’ve done everything. Hail Apple!

node -v gives me a version v6.9.1

npm -v gives me a version as well 4.0.2

Which proves they are all installed fine, am I right?

5 Answers 5

After countless hours of debugging and researching, I decided to install in a different machine to see if the problem was with my Node installation. It worked.

So for everyone who may come across this, know that the possibility to uninstall node and delete NPM will be there. This is what I did. I believe it is the safest way to solve the problem and all the rest of your applications installed in your machine will still work. I credit this answer for these steps, although I had other npm and node_modules in other locations. So do a quick search for these and unless they are part of an application, make sure they are deleted as well.

Uninstall from Programs & Features with the uninstaller.

Reboot (or you probably can get away with killing all node-related processes from Task Manager).

Look for these folders and remove them (and their contents) if any still exist. Depending on the version you installed, UAC settings, and CPU architecture, these may or may not exist:

  • C:\Program Files (x86)\Nodejs
  • C:\Program Files\Nodejs
  • C:\Users\\AppData\Roaming\npm (or %appdata%\npm )
  • C:\Users\\AppData\Roaming\npm-cache (or %appdata%\npm-cache )
  • C:\Users\\.npmrc (and possibly check for that without the . prefix too)

Check your %PATH% environment variable to ensure no references to Nodejs or npm exist.

If it’s still not uninstalled, type where node at the command prompt and you’ll see where it resides — delete that (and probably the parent directory) too.

error installing with npm in windows 10 #398

Comments

brakdag commented May 25, 2018 •

npm i robotjs don’t work
not install in windows 10

Possible Solution

Context

Your Environment

  • RobotJS version: npm version last
  • Node.js version: 8.11.2
  • npm version: 5.6.0
  • Operating System: Windows 10 Home 64x

The text was updated successfully, but these errors were encountered:

antoniojps commented May 27, 2018 •

It might be worth updating Node before doing the instructions below.

Run this command from an administrative shell to install the «software» dependencias (Visual Studio, Python) on windows:
npm install —global —production windows-build-tools , recent feedback has been using npm install -g windows-build-tools as an alternative.

Install node-gyp globally:
npm install -g node-gyp

Then try installing the package again:
npm install robotjs

This solved the issue for me.

zircuitz commented May 30, 2018

I am having issues as well. Same Windows as @brakdag
I did install all the packages as @antoniojps mentions here. But when I try to initialize the library, I still get an error message:

sbucaille commented Jun 2, 2018

Same here, can’t install robotjs, I did what @antoniojps advised, the 3 commands, here is the last one :

Someone knows where does it come from ?

Deltatiger commented Jun 4, 2018

This seems to be a problem with the version requirements for NodeJS recompiled binaries.
The latest release does not have binaries for Windows 10 64Bit. When the node-pre-gyp fails due to lack of binaries, it falls back to building robotjs. For that you need some prerequisites, which are listed in the readme (https://github.com/octalmage/robotjs#building).
Can you try installing the required items and then trying again?

lgh06 commented Jul 7, 2018 •

cannot install either.
win10: 1803 17134.5
node: v8.11.1
npm: 5.6.0
with windows-build-tools installed.

lgh06 commented Jul 9, 2018

it worked, after I install a newer nodejs 8.11.3

pramodDesign commented Aug 17, 2018 •

When I try to run my project got following error:
0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files (x86)\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘start’ ]
2 info using npm@3.6.0
3 info using node@v5.6.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle imdevelopment-frontend@0.1.0 prestart: imdevelopment-frontend@0.1.0
6 silly lifecycle imdevelopment-frontend@0.1.0 prestart: no script for prestart, continuing
7 info lifecycle imdevelopment-frontend@0.1.0 start: imdevelopment-frontend@0.1.0
8 verbose lifecycle imdevelopment-frontend@0.1.0 start: unsafe-perm in lifecycle true
9 verbose lifecycle imdevelopment-frontend@0.1.0 start: PATH: C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin;E:\im-frontend\frontend\node_modules.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\nodejs;C:\WINDOWS\System32\OpenSSH;C:\Ruby24-x64\bin;C:\Ruby24\bin;C:\Program Files\Microsoft VS Code\bin;C:\Users\vihnu pramod\AppData\Local\Microsoft\WindowsApps;C:\Users\vihnu pramod\AppData\Roaming\npm;
10 verbose lifecycle imdevelopment-frontend@0.1.0 start: CWD: E:\im-frontend\frontend
11 silly lifecycle imdevelopment-frontend@0.1.0 start: Args: [ ‘/d /s /c’, ‘npm-run-all -p watch-css start-js’ ]
12 silly lifecycle imdevelopment-frontend@0.1.0 start: Returned: code: 1 signal: null
13 info lifecycle imdevelopment-frontend@0.1.0

start: Failed to exec start script
14 verbose stack Error: imdevelopment-frontend@0.1.0 start: npm-run-all -p watch-css start-js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js 💯 13)
14 verbose stack at EventEmitter.emit (events.js:185:7)
14 verbose stack at ChildProcess. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack at emitTwo (events.js 💯 13)
14 verbose stack at ChildProcess.emit (events.js:185:7)
14 verbose stack at maybeClose (internal/child_process.js:827:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid imdevelopment-frontend@0.1.0
16 verbose cwd E:\im-frontend\frontend
17 error Windows_NT 10.0.17134
18 error argv «C:\Program Files (x86)\nodejs\node.exe» «C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js» «start»
19 error node v5.6.0
20 error npm v3.6.0
21 error code ELIFECYCLE
22 error imdevelopment-frontend@0.1.0 start: npm-run-all -p watch-css start-js
22 error Exit status 1
23 error Failed at the imdevelopment-frontend@0.1.0 start script ‘npm-run-all -p watch-css start-js’.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the imdevelopment-frontend package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error npm-run-all -p watch-css start-js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs imdevelopment-frontend
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls imdevelopment-frontend
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Deltatiger commented Sep 19, 2018

@pramodDesign What did you try to run? Could you give us more information?

A-312 commented Nov 28, 2018

19 error node v5.6.0
20 error npm v3.6.0

Оцените статью