Ошибки NPM ENOENT при запуске установки Npm - PullRequest
0 голосов
/ 24 октября 2019

Я пытался создать робота на основе RoVer для моего сервера Discord, но я продолжаю получать ошибки ENOENT всякий раз, когда запускаю npm Install.

Я знаю, что есть другие подобные сообщения, но ни одна изответы сработали, и они не совсем та же проблема, что и у меня. Я уже пытался переустановить Node.js и NPM, убедившись, что package.json есть, перезапустил и запустил с правами администратора. В настоящее время я использую Windows 10 версии 1903, Node версии 12.13.0, npm версии 6.12.0.

Вот вывод:

C:\Users\terri_3irl9af\Desktop\AMC Pilot Management>npm install
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\type-b1627078\array\ensure.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-map-8f9402c7\primitive\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-set-0c58b760\lib\iterator.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\type-b1627078\array\is.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\array.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-set-0c58b760\lib\primitive-iterator.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\for-of.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\get.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\inquirer-1bea01d1\lib\utils\events.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\inquirer-1bea01d1\lib\utils\paginator.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\is-iterable.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\inquirer-1bea01d1\lib\utils\readline.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\string.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\inquirer-1bea01d1\lib\utils\screen-manager.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es6-iterator-44858e44\test\valid-iterable.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\inquirer-1bea01d1\lib\utils\utils.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\readable-stream-cd75c034\lib\internal\streams\BufferList.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\readable-stream-cd75c034\lib\internal\streams\destroy.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\readable-stream-cd75c034\lib\internal\streams\stream-browser.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\readable-stream-cd75c034\lib\internal\streams\stream.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\eslint-9d02902d\lib\util\patterns\letters.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\eslint-9d02902d\lib\code-path-analysis'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\type-b1627078\test\array-length\coerce.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\type-b1627078\test\array-length\ensure.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\type-b1627078\test\array-like'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\map\implement.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\map\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\map\is-implemented.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\map\shim.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\remove.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\array\#\separate.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\copy-within.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\entries.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\every.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\fill.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\filter.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\find-index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\find.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\flat-map.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\flatten.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\for-each.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\includes.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\index-of.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\iterator.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\join.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\keys.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\last-index-of.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\map.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\reduce-right.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\reduce.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\slice.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\some.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\sort.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\array\virtual\values.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\asap.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\clear-immediate.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\atanh\implement.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\atanh\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\atanh\is-implemented.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\atanh\shim.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\cbrt'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\error\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\core-js-70848f9b\fn\error\is-error.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\log10\implement.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\log10\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\log10\is-implemented.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math\log10\shim.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\terri_3irl9af\Desktop\AMC Pilot Management\node_modules\.staging\es5-ext-7d8b429e\math'
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 https://github.com/discordjs/Commando.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\terri_3irl9af\AppData\Roaming\npm-cache\_logs\2019-10-23T23_59_46_552Z-debug.log```

1 Ответ

0 голосов
/ 24 октября 2019

Похоже, это может быть проблема с разрешениями. Вы в корне своего проекта?

От: https://github.com/visionmedia/debug/issues/261

, если вы новичок в Node / github / и т.д., вы можете делать то, что я сделал -- клонировал репозиторий, а затем забыл перейти в каталог репозитория - поэтому npm не может найти файл package.json, поэтому выдает это большое запутанное сообщение об ошибке.

Я полагаю, у вас естьфайл package.json в том же каталоге, в котором вы запускаете тесты из ??

...