1

我一直在遵循本指南(https://theshravan.net/blog/how-to-use-node-and-npm-without-installation-or-admin-rights/)尝试在我的工作电脑。

在遵循所有指示后,我的节点显示了它的版本,但没有显示 NPM。

当前路径是C:\TOOLS\nodejs

npm -v给出回应bash: npm: command not found

任何建议都有帮助!谢谢

4

1 回答 1

1

在 Windows 上,“node”和“npm”命令仅在 exe 列在路径变量下时才有效。如果您无法访问管理员,请尝试:

path to node.exe filename

IEC:\Users\lol\path\to\node.exe index.js

于 2020-12-02T02:04:34.927 回答