weixin_40860694 2017-11-16 02:45 采纳率: 0%
浏览 4745

关于NodeJS无法执行文件问题

NodeJS安装后,在命令行中执行npm server.js时报以下信息
Usage: npm

where is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
explore, get, help, help-search, i, init, install,
install-test, it, link, list, ln, login, logout, ls,
outdated, owner, pack, ping, prefix, profile, prune,
publish, rb, rebuild, repo, restart, root, run, run-script,
s, se, search, set, shrinkwrap, star, stars, start, stop, t,
team, test, token, tst, un, uninstall, unpublish, unstar,
up, update, v, version, view, whoami

npm -h quick help on
npm -l display full usage info
npm help search for help on
npm help npm involved overview

Specify configs in the ini-formatted file:
C:\Users\Administrator.cnpmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config

npm@5.5.1 C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm
有哪位大神指导下,怎么操作可以执行JS文件,是什么原因引起的,如何解决

  • 写回答

2条回答 默认 最新

  • m0_47790117 2020-05-14 01:10
    关注

    npm run xxxxx. js

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?