我按照以下页面使用NVM安装了NPM:npm抛出错误,没有sudo.在Ubuntu终端,一切都很完美.但是,在IntelliJ终端内部,它表示我没有安装NPM.我试图在语言和框架>节点和NPM中设置我的节点解释器,~/.nvm/versions/node/v6.8.0/bin/node
我启用了Node.js核心库,从那里我可以看到包含npm包.但终端仍然说我没有安装npm.为什么?
这是我的.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and …Run Code Online (Sandbox Code Playgroud)