[英]updating nodejs on linux (yocto) using npm
我需要在Linux-Yocto操作系統上使用npm
在我嘗試過的操作系統上更新nodejs:
npm cache clean -f
npm install -g n
/usr/bin/n -> /usr/lib/node_modules/n/bin/n
/usr/lib
`-- n@6.0.1
n stable
cp: cannot stat '/usr/local/n/versions/node/10.16.3/lib': No such file or directory
cp: cannot stat '/usr/local/n/versions/node/10.16.3/bin': No such file or directory
cp: cannot stat '/usr/local/n/versions/node/10.16.3/include': No such file or directory
cp: cannot stat '/usr/local/n/versions/node/10.16.3/share': No such file or directory
/usr/bin/n: line 545: /usr/local/bin/node: No such file or directory
有人知道我在這里想念的嗎?
提前致謝 !
聽起來很像, n
依賴於位於/usr/local/bin/node
的節點二進制文件,對於FHS建議的,由yocto執行的發行版安裝,這並不適用。
盡管您可以通過修補來解決此問題,但Yocto風格的方法是將首先構建nodejs的配方更新為所需版本,然后完全刪除該映像。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.