I have an umbrella project. But, having converted it to this, npm i
commands no longer are working. I get the error:
npm WARN checkPermissions Missing write access to
/Users/amarkskatz/Desktop/Projects/Elixir/functional_design/islands/apps/islands_interface/assets
/node_modules/phoenix
npm WARN checkPermissions Missing write access to
/Users/amarkskatz/Desktop/Projects/Elixir/functional_design/islands/apps/islands_interface/assets
/node_modules/phoenix_html
npm WARN assets No description
npm ERR! path /Users/amarkskatz/Desktop/Projects/
Elixir/functional_design/islands/apps/islands_interface/assets/node_modules/phoenix
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory,
access '/Users/amarkskatz/Desktop/Projects/Elixir/functional_design/islands/apps/islands_interface/assets/node_modules/phoenix'
npm ERR! enoent This is related to npm not being
able to find a file.
Snippet from my package.json
:
"phoenix": "file:../../../deps/phoenix",
"phoenix_html": "file:../../../deps/phoenix_html",
Strangely, deleting my node_modules
folder then running npm i
fixes my issue.
I’m guessing the phoenix
and phoenix_html
files linked to my pre-umbrella deps
folder (only one ../
away).
So I’m guessing by running mix deps.get
at the root level, then npm i
in the child project’s assets
folder (with updated file:
paths in package.json
), the new links generated point to the proper (new) directory location.