0
我有節點,NPM版本:
無法安裝sails.js
C:\Windows\system32>node -v
v4.5.0
C:\Windows\system32>npm -v
3.10.6
我試圖安裝sails.js爲administator
npm install -g sails
在C:\ Program Files文件\的NodeJS \ node_modules \ 它創建了一個.staging文件夾 ,然後啓動文件夾... 但稍後再次.staging文件夾被自動刪除... 而在管理員控制檯日誌nded與此錯誤...
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\sjammulamada\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\
npm-cli.js" "install" "-g" "sails"
npm ERR! node v4.5.0
npm ERR! npm v3.10.6
npm ERR! path C:\Program Files\nodejs\node_modules\.staging\lodash-86452639
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Program Files\nodejs\node_modules\.staging\lodash-86452639' ->
'C:\Program Files\nodejs\node_modules\sails\node_modules\anchor\node_modules\lodash'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Program Files\nodejs\node_modules\.staging\lodash-86452639' ->
'C:\Program Files\nodejs\node_modules\sails\node_modules\anchor\node_modules\lodash'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\system32\npm-debug.log
npm ERR! code 1
我試圖
npm cache clean
,然後嘗試安裝sails.js ..但依然沒有結果。我必須失去了財產以後讓我知道..