只是不知道是否有人能提供一些線索上npm install
VirtualBox虛擬機上運行(安裝Ubuntu的v16.4)..我得到這個遺憾錯誤NPM VirtualBox上安裝問題與Ubuntu安裝
[email protected]:/media/sf_ubuntu/angular$ npm install
[email protected] /media/sf_ubuntu/angular
├── UNMET PEER DEPENDENCY @angular/[email protected]
└── UNMET PEER DEPENDENCY @angular/[email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] requires a peer of @angular/[email protected]~2.1.1 but none was installed.
npm WARN [email protected] requires a peer of @angular/[email protected]~2.1.1 but none was installed.
npm WARN [email protected] No repository field.
npm ERR! Linux 4.8.0-22-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path ../acorn/bin/acorn
npm ERR! code EROFS
npm ERR! errno -30
npm ERR! syscall symlink
npm ERR! rofs EROFS: read-only file system, symlink '../acorn/bin/acorn' -> '/media/sf_ubuntu/angular/node_modules/.bin/acorn'
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
npm ERR! Please include the following file with any support request:
npm ERR! /media/sf_ubuntu/angular/npm-debug.log
npm ERR! code 1
爲共享Virtualbox文件夾選擇了「只讀」嗎? – Aurora0001
什麼是/ media/sf_ubuntu/angular?它是網絡路徑還是可移動驅動器?如果是這樣,你需要檢查它的權限。 – jsalatas
它似乎是一個權限問題。我不得不將package.json移動到Ubuntu硬盤中的文件夾。它現在運行正常。謝謝 –