Не могу запустить `npm install` в коде где-нибудь SSH-терминала - PullRequest
0 голосов
/ 19 сентября 2019

Я новичок в Codeanywhere - я установил соединение, используя существующий проект из Github, используя шаблон проекта Node Ubuntu.

Когда я запускаю npm i, я получаю много тысяч предупрежденийошибки (вероятно, из-за попытки установить пакеты независимо.

Вот фрагмент того, на что это похоже:

cabox@gearcaster-mobile:~$ npm i
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/instance'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/typed-array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/dom-collections'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/instance'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/typed-array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/es/symbol'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/symbol'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/number'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/es/array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/es/typed-array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/map'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/typed-array'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/weak-map'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/array'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/typed-array'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/map'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/es/function'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/es/symbol'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/features/function'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/function'
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/stable/symbol'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar ENOENT: no such file or directory, lstat '/home/cabox/workspace/node_modules/.staging/core-js-c0b7d8cb/web'
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write
npm WARN tar Unknown system error -122: Unknown system error -122, write

...

Что очевидно, следующая строка продолжает появляться снова и снова:

npm WARN tar Unknown system error -122: Unknown system error -122, write

Если я попытаюсь запустить yarn install я получу:

cabox@gearcaster-mobile:~$ yarn
yarn install v1.17.3
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 0.07s.
/home/cabox/.nvm/versions/node/v10.15.0/lib/node_modules/yarn/lib/v8-compile-cache.js:90
      throw error;
      ^

TypeError: errmap.get is not a function or its return value is not iterable
    at Object.uvException (internal/errors.js:251:34)
    at handleErrorFromBinding (fs.js:113:24)
    at Object.writeSync (fs.js:569:3)
    at Object.writeFileSync (fs.js:1200:26)
    at FileSystemBlobStore.save (/home/cabox/.nvm/versions/node/v10.15.0/lib/node_modules/yarn/lib/v8-compile-cache.js:87:10)
    at process.once.code (/home/cabox/.nvm/versions/node/v10.15.0/lib/node_modules/yarn/lib/v8-compile-cache.js:337:17)
    at Object.onceWrapper (events.js:273:13)
    at process.emit (events.js:182:13)
    at processEmit [as emit] (/home/cabox/.nvm/versions/node/v10.15.0/lib/node_modules/yarn/lib/cli.js:76258:35)

Заранее спасибо за помощь!

...