我安装了一个nodejs软件包(模块?)使用
sudo npm install -g ng-annotate我该怎么开始呢?
我试过了
npm run ng-annotate test它确实进行了一些测试,它们都通过了。不错,但是将test替换为其他任何东西都不会产生任何输出,返回代码为零。例如,
npm run ng-annotate npn is a crap!什么都不做。我也尝试过nodejs whatever,等等。我想要的应该是什么样子
npm run ng-annotate run --add - < infile.js > outfile.js我必须承认,我还没有阅读所有可用的帮助,但这是第一个忽略所有无效输入并对如何运行它保密的工具。我现在不想学习nodejs;我所需要的只是运行脚本。
发布于 2014-08-12 10:59:54
根据评论,
ng-annotate run --add - < infile.js > outfile.js应该可以的。有个链接
/bin/ls -l /usr/bin/ng-annotate
lrwxrwxrwx 1 root root 53 2014-08-12 11:53 /usr/bin/ng-annotate -> ../lib/node_modules/ng-annotate/build/es5/ng-annotate导致无法访问的文件
sudo /bin/ls -l /usr/lib/node_modules/ng-annotate/build/es5/ng-annotate
-rwx------ 1 nobody maaartin 49 2014-08-09 00:43 /usr/lib/node_modules/ng-annotate/build/es5/ng-annotate我重新安装了npm,但没有帮助。手动修复权限。
https://stackoverflow.com/questions/25261746
复制相似问题