找不到模块'jasmine-reporter'
我的'npm'文件夹位于D:\ Box文件夹中,因为我没有C上的空间。通过在系统环境variables中添加一个名为PROTRACTOR的新环境variables来configuration量angular器。 然后在System Path中input:%PROTRACTOR%\ bin
这完美地适用于量angular器。
现在我想添加茉莉花记者,我粘贴npm \ node_modules \ jasmine-node \ node_modules'jasmine-reporter'和'jasmine-growl-reporter'文件夹。 然后在conf.js中运行一个testing用茉莉花报告,我看到错误信息:
找不到模块'jasmine-reporter'。
我尝试的是:
- 在npm \ node_modules中粘贴'jasmine-reporter'和'jasmine-growl-reporter'文件夹
- 添加系统环境variablesNODE_PATH:D:\ Box \ npm \ node_modules
结果是一样的。 有人请帮我解决这个问题。
如果你想保持你的全局node_modules在D:\驱动器上,你需要在npm config中更改前缀,如npm docs
短版本(以pipe理员身份在命令提示符下):
npm config set prefix d:\box
要查看您可以发出的当前path是什么:
npm config get prefix