ubuntu – yo:找不到命令
发布时间:2020-10-19 15:21:56 所属栏目:Ubuntu 来源:互联网
导读:我用chris lea的版本安装了nodejs: sudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updatesudo apt-get install nodejs npm 比使用npm安装自耕农,grund-cli和凉亭: sudo npm install -g yo grunt-cli bower 一切顺利,包括“[Yeo
我用chris lea的版本安装了nodejs: sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm 比使用npm安装自耕农,grund-cli和凉亭: sudo npm install -g yo grunt-cli bower 一切顺利,包括“[Yeoman Doctor]一切看起来都没问题!”在自耕农的安装结束时. /home/gabriela/npm/bin/yo -> /home/gabriela/npm/lib/node_modules/yo/cli.js > yo@1.1.2 postinstall /home/gabriela/npm/lib/node_modules/yo > node ./scripts/doctor 比我跑: gabriela@Gabriela-Ubuntu:~$which node /usr/bin/node gabriela@Gabriela-Ubuntu:~$which npm /usr/bin/npm gabriela@Gabriela-Ubuntu:~$which bower /usr/bin/bower gabriela@Gabriela-Ubuntu:~$which yo gabriela@Gabriela-Ubuntu:~$yo yo: command not found gabriela@Gabriela-Ubuntu:~$echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME:$JRE_HOME 什么地方出了错?我是否必须执行任何其他命令来正确安装yeoman? 我真的不知道为什么它会丢失.所以在经过一系列测试之后,我决定创建一个符号链接.gabriela@Gabriela-Ubuntu:/$sudo ln -s /home/gabriela/npm/bin/yo /usr/bin/yo gabriela@Gabriela-Ubuntu:/$yo [?] What would you like to do? (Use arrow keys) Run the Angular-bootstrap generator (0.4.1) Update your generators Install a generator Find some help Get me out of here! (编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |