2017-03-08 26 views
0

我在安裝centos中的dashing-j時遇到了問題,我按照以下步驟操作,但出現以下錯誤。[root @ ip-10-0-2 -15 vagrant]#npm install -g node -dashing-js npm WARN棄用[email protected]:Jade已更名爲pug,請安裝最新版本的帕格而不是玉 npm WARN棄用[email protected] :已棄用,請使用jstransformer npm WARN棄用[email protected]:此軟件包已重新集成到npm中,現在已過期npm npm WARN棄用[email protected]:請更新至minimatch 3.0.2或更高以避免RegExp DoS問題 npm WARN不推薦使用[email protected]:graceful-fs v3.0.0,並且之前會在節點版本上失敗> = v7.0 。請儘快更新至[email protected]^4.0.0。使用'npm ls graceful-fs'在樹中找到它。 npm WARN棄用[email protected]:使用uuid模塊代替 /usr/bin/dashing -js - >/usr/lib/node_modules/node-dashing -js/bin/dashing-js /usr/lib └─┬[email protected] └─┬[email protected] ├─┬[email protected] │└──[email protected] └─ ┬[email protected] └──[email protected]無法在linux中使用nodejs安裝dashing-js

[根@ IP-10-0-2-15無業遊民]#橫飛-JS新sweet_dashboard_project :沒有這樣的文件或目錄

+0

安裝我使用下面的鏈接爲橫飛-JS https://github.com/jonnochoo/nuvo-dashing-js/ –

回答

0

確保你有np包含在您的PATH中的全局bin路徑。

檢查路徑和橫飛-JS由

echo $PATH 
which dashing-js 
+0

[根@ ip-10-0-2-15 vagrant]#echo $ PATH /sbin:/ bin:/ usr/sbin:/ usr/bin [root @ ip-10-0-2-15 vagrant]#which dashing- js /bin/dashing-js –

+0

做dashing-js需要一個文件夾來創建befor嗎?你可以試試'mkdir sweet_dashboard_project'和''dashing -js new sweet_dashboard_project'再次 –

+0

[root @ ip-10-0-2-15 vagrant]#npm config獲取前綴 /usr –