WebStorm - error: Please specify npm package

后端 未结 12 2449
忘掉有多难
忘掉有多难 2020-12-29 06:53

Webstorm throws an error when trying to run a command specified in package.json:

\"devDependencies\": {},
      \"scripts\": {
        \"dev\": \"./node_modu         


        
12条回答
  •  借酒劲吻你
    2020-12-29 07:16

    On Ubuntu, if you have installed npm/nodejs via apt, use the /usr/share/npm folder for the npm package.

    sudo apt-get install npm nodejs
    sudo ln -s /usr/bin/nodejs /usr/bin/node
    

提交回复
热议问题