Я использую npm
3.3.6
и когда я пытаюсь установить кучу модулей, я получаю ошибку ниже:НПМ: ENOENT: нет такого файла или каталога
npm i babel-cli babel-plugin-syntax-async-functions babel-plugin-transform-regenerator babel-polyfill babel-preset-es2015 babelify watchify browserify --save-dev
npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/thomas/.nvm/versions/node/v5.0.0/bin/node" "/Users/thomas/.nvm/versions/node/v5.0.0/bin/npm" "i" "babel-cli" "babel-plugin-syntax-async-functions" "babel-plugin-transform-regenerator" "babel-polyfill" "babel-preset-es2015" "babelify" "watchify" "browserify" "--save-dev"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! path /Users/thomas/Desktop/esnext-bootstrap/node_modules/babel-cli/node_modules/chokidar/node_modules/fsevents/node_modules/asn1
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/thomas/Desktop/esnext-bootstrap/node_modules/babel-cli/node_modules/chokidar/node_modules/fsevents/node_modules/asn1' -> '/Users/thomas/Desktop/esnext-bootstrap/node_modules/asn1'
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! /Users/thomas/Desktop/esnext-bootstrap/npm-debug.log
Я понятия не имею, что происходит здесь или какой именно модуль вызывает эту проблему. Я вижу, что он включает babel-cli
, chokidar
и ans1
, но когда я устанавливаю только babel-cli
, он работает без ошибок.
Просто каждый модуль индивидуально, и он работал нормально.
Я просто проверил полный тест, устанавливая каждый модуль отдельно и вместе, и никаких ошибок не произошло. Я удалил папку «node_modules» оба раза. Если кто-то хочет воссоздать здесь [startter repo] (https://github.com/reggi/stackoverflow-bug-npm-rename). – ThomasReggi