2017-03-15 30 views
0

我正在研究在Windows操作系统上的离子项目,然后我试图在Ubuntu(linux操作系统)上使用它,但它告诉我运行npm rebuild node-sass,所以我这样做,但是,但是这个错误不断显示我试图修复“的文件系统是只读的”,但没有奏效npm重建节点sass不工作离子

npm rebuild node-sass 
npm ERR! Linux 4.8.0-41-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "rebuild" "node-sass" 
npm ERR! node v4.8.0 
npm ERR! npm v4.1.2 
npm ERR! path /media/bishoy/realwork/ambulancer/code/patients/node_modules/.bin/node-sass 
npm ERR! code EROFS 
npm ERR! errno -30 
npm ERR! syscall unlink 

npm ERR! rofs EROFS: read-only file system, unlink '/media/bishoy/realwork/ambulancer/code/patients/node_modules/.bin/node-sass' 
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! Linux 4.8.0-41-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/bin/npm" "rebuild" "node-sass" 
npm ERR! node v4.8.0 
npm ERR! npm v4.1.2 
npm ERR! path npm-debug.log.185227705 
npm ERR! code EROFS 
npm ERR! errno -30 
npm ERR! syscall open 

npm ERR! rofs EROFS: read-only file system, open 'npm-debug.log.185227705' 
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/bishoy/realwork/ambulancer/code/patients/npm-debug.log 

回答

0

您需要删除node_modules和运行npm install

看吧:

rm -rf node_modules 
npm install