nuysoft / Mock

A simulation data generator
http://mockjs.com
Other
19.54k stars 2.66k forks source link

npm 安装不了,但可以安装别的 package #114

Closed thenbsp closed 8 years ago

thenbsp commented 8 years ago

为什么我使用 npm 安装不了,但可以安装别的 package,比如 jquery 和 bootstrap 就可以?

报错信息如下:

[root@localhost node_modules]# npm install jquery --save-dev
jquery@2.2.3 jquery
[root@localhost node_modules]# npm install bootstrap --save-dev
bootstrap@3.3.6 bootstrap
[root@localhost node_modules]# npm install mockjs --save-dev
npm ERR! Linux 3.10.0-327.13.1.el7.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mockjs" "--save-dev"
npm ERR! node v4.4.1
npm ERR! npm  v2.14.20
npm ERR! path ../mockjs/bin/random
npm ERR! code ENOTSUP
npm ERR! errno -95
npm ERR! syscall symlink

npm ERR! nospc ENOTSUP: operation not supported on socket, symlink '../mockjs/bin/random' -> '/mnt/hgfs/www/reactjs/node_modules/.bin/random'
npm ERR! nospc This is most likely not a problem with npm itself
npm ERR! nospc and is related to insufficient space on your system.

npm ERR! Please include the following file with any support request:
npm ERR!     /mnt/hgfs/www/reactjs/node_modules/npm-debug.log
nuysoft commented 8 years ago

执行 sudo npm install mockjs --save-dev 呢?

thenbsp commented 8 years ago

已经解决,是因为我使用的虚拟机,在宿主机 win7 上无法创建 symlink