У меня есть приложение NPM с package.json
:
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"scrape": "node scraper.js",
"map": "node mapper.js",
"test": "node test.js"
},
"dependencies": {
"json-2-csv": "^3.5.2",
"neat-csv": "^5.1.0",
"puppeteer": "^1.13.0",
"string-similarity": "^3.0.0"
},
"author": "",
"license": "ISC"
}
Когда я клонирую репо и запускаю установку NPM, я получаю следующую ошибку:
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\@hapi\hoek
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\extract-zip\node_modules\ms
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\extract-zip\node_modules\debug
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\https-proxy-agent\node_modules\debug
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\mkdirp\node_modules\minimist
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\@hapi
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\extract-zip\node_modules
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\https-proxy-agent\node_modules
npm WARN checkPermissions Missing write access to D:\wrkfldr\ProfileScraper\node_modules\mkdirp\node_modules
npm ERR! path D:\wrkfldr\ProfileScraper\node_modules\@hapi\hoek
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\wrkfldr\ProfileScraper\node_modules\@hapi\hoek'
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! D:\nodejs\_logs\2019-10-15T08_04_01_832Z-debug.log
Несколько вещей:
- Я под Windows
- Я запустил это в CMD с правами администратора
- Нет папки
node_modules
- То же самоеклон под Debian работает правильно
- npm имеет версию 6.9.0
Почему npm install
не работает должным образом?