将SASS添加到React Project Stalls Yarn Start

时间:2019-03-25 00:26:14

标签: node.js reactjs sass yarnpkg

我正在通过React项目进行中,现在正在添加样式并实现SASS,而前几天,当我添加了软件包和某些样式时,一切运行良好。今天,我用Yarn Start来启动它,并且得到:

npm WARN lifecycle The node binary used for scripts is /var/folders/hd/zrndmrss6z3cbm68fxxyt4wm0000gn/T/yarn--1553472972241-0.9303472274627695/node but npm is using /Users/kevinhyde/.nvm/versions/node/v11.10.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> test-again@0.1.0 css-watch /Users/kevinhyde/Desktop/CAREER/UW Code Camp/Post_Grad_Apps/test-again
> npm run css-build -- --watch

npm WARN lifecycle The node binary used for scripts is /var/folders/hd/zrndmrss6z3cbm68fxxyt4wm0000gn/T/yarn--1553472972241-0.9303472274627695/node but npm is using /Users/kevinhyde/.nvm/versions/node/v11.10.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> test-again@0.1.0 css-build /Users/kevinhyde/Desktop/CAREER/UW Code Camp/Post_Grad_Apps/test-again
> node-sass --omit-source-map-url sass/mystyles.scss css/mystyles.css "--watch"

我只有以下软件包:

  "dependencies": {
    "axios": "^0.18.0",
    "bulma": "^0.7.4",
    "bulma-extensions": "^6.2.0",
    "dotenv": "^6.2.0",
    "node-sass": "^4.11.0",
    "react": "^16.8.3",
    "react-bulma-components": "^2.3.0",
    "react-dom": "^16.8.3",
    "react-scripts": "2.1.5"
  },

到目前为止,我已经尝试在相关软件包上重新安装节点,并直接npm inpm audit进行修复,但是当我在添加{之前跳回到上一个分支时{1}},一切都很好。有什么想法吗?

0 个答案:

没有答案