2015-04-06 71 views
0
C:\Users\Kashif\Desktop\Mean-io>mean init myAPp 
? What would you name your mean app? myAPp 
On windows platform - Please check permissions independently 
All permissions should be run with the local users permissions 
Cloning branch: master into destination folder: myAPp 
git clone --depth 1 -bmaster https://github.com/linnovate/mean.git "myAPp" 
FIND: Parameter format not correct 
There are 2 files in your ~/.npm owned by root 
Please change the permissions by running - chown -R `whoami` ~/.npm 

C:\Users\Kashif\AppData\Roaming\npm\node_modules\mean-cli\lib\utils.js:67 
     throw('ROOT PERMISSIONS IN NPM'); 
    ^
ROOT PERMISSIONS IN NPM 

我也嘗試ROOT訪問,但錯誤是一樣的。雖然創建Mean.io項目,我得到的錯誤

回答

0

今天我有同樣的問題,我已經發現了utils.js使用以下命令來查找由root擁有的文件:

var findCmd = 'find ' + homeDir +'/.npm ' + '-user root'; 

這顯然不能在Windows工作。

解決此問題的方法是確保您擁有該目錄的權限並將其註釋掉shell.exec()

乾杯。

相關問題