我按照说明安装了咖啡脚本。
$ npm install http://github.com/jashkenas/coffee-script/tarball/master
npm http GET http://github.com/jashkenas/coffee-script/tarball/master
npm http 200 http://github.com/jashkenas/coffee-script/tarball/master
npm http GET https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/mkdirp
npm WARN package.json cookie-signature@1.0.0 No repository field.
npm WARN package.json fresh@0.1.0 No repository field.
npm WARN package.json methods@0.0.1 No repository field.
npm WARN package.json range-parser@0.0.4 No repository field.
npm WARN package.json send@0.1.0 No repository field.
npm WARN package.json ms@0.1.0 No repository field.
npm WARN package.json pause@0.0.1 No repository field.
npm WARN package.json bytes@0.2.0 No repository field.
npm WARN package.json formidable@1.0.11 No repository field.
npm WARN package.json css@1.0.8 No repository field.
npm WARN package.json uglify-js@2.2.5 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json walk@2.2.1 No repository field.
npm WARN package.json css-parse@1.0.4 No repository field.
npm WARN package.json css-stringify@1.0.5 No repository field.
coffee-script@1.6.3 node_modules/coffee-script
└── mkdirp@0.3.5
然而,当我执行“咖啡”命令时,我得到了
$ coffee
-bash: coffee: command not found
我究竟做错了什么?
PS:我在 Mac 终端上执行此操作
编辑: -
当我安装nodemon
npm install 时会发生同样的问题,类似于上面。但是当我在提示符下输入nodemon
命令时,$
它说-bash: nodemon: command not found